How can I place a folder in a specific location using javafx-ant with Maven? -
i have upgraded build plain ant maven manage dependencies. 1 of third party jars needs supporting file placed in specific location.
i have managed create simple pom.xml compile application , generate exe installer. unable place file in specific folder location.
when application build & deployed should placed in location:
${project.build.directory}/deploy/bundles/myapplication/app/{custom-folder}/*.properties
this want correctly bundled in installer - unable find way specify specific location specific file.
following pattern (only showing relative pieces of pom):
<groupid>org.apache.maven.plugins</groupid> <artifactid>maven-antrun-plugin</artifactid> <version>1.6</version> <executions> <execution> <phase>package</phase> <configuration> <target> <taskdef name="jfxdeploy" classname="com.sun.javafx.tools.ant.deployfxtask" classpathref="maven.plugin.classpath" /> <jfxdeploy outdir="${project.build.directory}/deploy" outfile="${build.finalname}" nativebundles="all"> <resources> <fileset dir="${project.build.directory}" includes="*.jar" /> <fileset dir="${project.build.directory}/dependency" includes="*.jar" /> <fileset dir="${project.build.directory}/properties" includes="*.properties" /> </resources> ....
this places *.properties file in location
${project.build.directory}/deploy/bundles/myapplication/app
is there way place in sub folder @ location?
thanks
i found answer issue. needed change mapping in fileset follows:
<fileset dir="${project.build.directory}" includes="properties/*.properties"/>
this placed needed be.
Comments
Post a Comment