Netbeans Java (JavaFX) Native Packaging with additional files and folders

How to include additional files and folders (configuration files) during natural packaging of Java applications?

When creating a project, I installed an assembly file to create directories and copy additional files to the dist directory.

My regular builds (without my own packaging) will lead to this directory structure:

-> dist
   -> lib
   -> application.jar
   -> config folder //additional folder
   -> another additional folder //additional folder

Now I would like to create my own installer (setup) with such additional folders / files that were extracted with my application and runtime.

Basically, when my own installer is running, it will create these files:

-> app
   -> lib
   -> application.jar
   -> package.cfg
-> runtime
   -> jre
-> applcation.exe
-> application.ico
-> unins000.dat
-> unins000.exe

My additional files and folders are not included in my installer. I would like my installer with these additional files to be extracted, preferably like this

-> app
   -> lib
   -> config folder //additional folder
   -> another additional folder //additional folder
   -> application.jar
   -> package.cfg
-> runtime
   -> jre
-> applcation.exe
-> application.ico
-> unins000.dat
-> unins000.exe

, Ant Inno .

+2
1

- Wix, , . Ant build script fx:deploy. nativeBundles exe. , fx:fileset fx:application/fx:resources XPATH. .

<target name="deploy">
  <fx:deploy verbose="true" nativeBundles="exe" ...>
    <fx:application name="${app.title}" mainClass="${main.class}" version="${version}">
      <fx:resources>
        <fx:fileset dir="${base.dir}" includes="config/*.*" />
        <fx:fileset dir="${base.dir}" includes="data/*.*" />
      </fx:resources>
    </fx:application>
  </fx:deploy>
</target>

fx:resources . Oracle, 6.

+2

All Articles