Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5917

Duplicating -Djboss.server.base.dir if defined in more than one place

    XMLWordPrintable

Details

    Description

      If -Djboss.server.base.dir is set in more than one place the process is started with the duplicate property.

      Is this expected behavior?

      The duplicated -Djboss.server.base.dir can be easily reproduced with just our scripts.

          ./standalone.sh -Djboss.server.base.dir=/path/to/standalone
      

      or by setting it in $JAVA_OPTS.
      (the only difference is where the first one shows up - with JAVA_OPTS it's earlier in the command line).

      standalone.sh is specifically looking for that property in $JAVA_OPTS or $SERVER_OPTS and then adding it on the command line (even if it was already there).

      I created this as a minor issue because it's been like this for a long time and more than likely it's an edge case. The latter of the properties will be used by the JVM.

      Attachments

        Issue Links

          Activity

            People

              yborgess1@redhat.com Yeray Borges Santana
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: