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

Ant task / element <fx:fileset requiredFor="preloader"> doesn't create appropriate value in generated JNLP file

    XMLWordPrintable

Details

    Description

      I'm expecting the <fx:fileset requiredFor="preloader"> element to result in <jar href="client-preloader-0.1-SNAPSHOT.jar" size="145045" download="progress"/> in the JNLP file. Instead a value of "eager" is set in the download attribute.

      This expectation is based upon the documentation of the <fx:fileset> found here: http://docs.oracle.com/javafx/2/deployment/javafx_ant_task_reference002.htm#CIAIHFGI

      {code}
      <target xmlns:fx="javafx:com.sun.javafx.tools.ant">
      <taskdef
      uri="javafx:com.sun.javafx.tools.ant"
      resource="com/sun/javafx/tools/ant/antlib.xml"
      classpath="${javafx.tools.ant.jar}"/>

      <fx:application id="fxApp"
      name="${project.name}"
      mainClass="${exec.mainClass}"
      preloaderClass="com.preloader.MyPreloader">
      <param name="app.version" value="${project.parent.version}"/>
      <param name="app.name" value="${app.name}"/>
      </fx:application>
      <fx:jar destfile="${javafx-launcher-dir}/client-${project.parent.version}-launcher">
      <fx:application refid="fxApp"/>
      <fileset dir="${unpcked-cc-dir}"/>
      <fx:resources>
      <fx:fileset dir="${dep-dir}" includes="*.jar" excludes="client-preloader*.jar" requiredFor="startup"/>
      <fx:fileset dir="${dep-dir}" includes="client-preloader*.jar" requiredFor="preloader"/>
      </fx:resources>
      </fx:jar>
      ...
      </target>

      {code}


      Attachments

        Activity

          People

            dcherepanov Dmitry Cherepanov
            zheismannjfx Zac Heismann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported: