Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8096307

[Bundlers] ant interface seems to ignore all the fx:platform arguments

XMLWordPrintable

      Suppose some ant build script with nested within <fx:deploy/> <fx:platform/> argument like this:
      <fx:platform>
          <fx:jvmuserarg name="-Dsqe.key1=" value="value1"/>
          <fx:jvmuserarg name="-Dsqe.key2=" value="value2"/>
          <fx:property name="sqe.aba.caba" value="dabacaba"/>
          <fx:jvmarg value="-Dsqe.foo.bar=baz"/>
          <fx:jvmarg value="-Dsqe.qux.corge=grault"/>
      </fx:platform>

      It seems like none of these options are applied. Consides some app, which shows all the JVM properties, which keys starts with "sqe". When this build.xml is applied to this app, not one of these options is shown.

      Log:


      19:33 [/tmp] $ ant
      Buildfile: /tmp/build.xml

      fx-deploy:
      No base JDK. Package will use system JRE.
      Creating app bundle: /tmp/testBundlerWorkDir/bundles/App1

      BUILD SUCCESSFUL
      Total time: 1 second
      19:33 [/tmp] $ ./testBundlerWorkDir/bundles/App1/App1
      Hello World initialized!
      -Dapp.preferences.id=testapp
      PASS_1
      JREVersion: 1.8.0_20-ea-b13
      19:36 [/tmp] $ java -Dsqe.foo.bar=baz -cp `path_separate.py ./testBundlerWorkDir/jars/*.jar` testapp.App1
      Hello World initialized!
      -Dsqe.foo.bar=baz
      PASS_1
      JREVersion: 1.8.0_20-ea-b13

            shemnon Danno Ferrin (Inactive)
            dginzbur Dmitry Ginzburg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: