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

Native EXE Bundler not copying Inno Setup project file drop-in resource.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P2 P2
    • None
    • 7u67
    • deploy
    • Maven/Ant

      The WinExeBundler.java Bundler class is not copying the project-name.iss drop in resource (package/windows/project-name.iss) to the temporary win-image directory. So the default template.iss file is always used instead and the inno setup project cannot be configured.

      I believe in WinExeBundler.prepareMainProjectFile before calling preprocessTextResource for the iss file, fetchResource needs to be called to copy the drop-in resource from the package folder to the win-image temporary folder where preprocessTextResource looks for files.

      Workaround:

      <!-- Copy the ant-javafx.jar -->
      <copy file="${ant.lib}/ant-javafx.jar" toFile="ant-javafx-patched.jar" />

      <!-- Patch it with our Inno Setup project file -->
      <jar destfile="ant-javafx-patched.jar" update="true">
      <zipfileset file="package/windows/${project.name}.iss" fullpath="com/sun/javafx/tools/resource/windows/template.iss" />
      </jar>

      <!-- Now define the javafx ant tasks using our patched jar -->
      <!-- Don't forget to include '.' in the classpath -->
      <taskdef
      resource="com/sun/javafx/tools/ant/antlib.xml"
      uri="javafx:com.sun.javafx.tools.ant"
      classpath=".:ant-javafx-patched.jar" />

            shemnon Danno Ferrin (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: