Hi cr0.
I assemble Mac OS .app application and now trying to switch from ant bundler task to your gradle one. In the ant task i have the next settings, which i can't find in your implementation:
<target name="bundleMac" depends="cleanTarget, checkProperties">
<taskdef name="bundleapp"
classname="com.oracle.appbundler.AppBundlerTask"
classpath="${basedir}/lib/appbundler-1.0.jar"/>
<bundleapp >
<classpath file="${buildDir}/libs/BuildUberJar.jar"/>
<classpath file="${libDir}/lib.dylib"/>
<classpath file="${libDir}/license.txt"/>
<classpath file="${resDir}/${splashImagePath}"/>
this classpath property copies files from build resources to Contents/Java bundled directory and would be used by the application at runtime.
There are 2 problems i have:
- Instead of just putting my single über-jar to
Java directory it puts all the dependencies jars.
- I've not found a way to copy resources (like those dylib, txt and splash image) to Java directory.
- When i build using this ant task in the result
Content directory also Resources subdirectory exists with my '128.icns' and some default en.lproj/Localizable.strings messages ("JRELoadError", "MainClassNameRequired", "JavaDirectoryNotFound"). Why it's absent in this gradle task?
Thanks.
Hi cr0.
I assemble Mac OS .app application and now trying to switch from ant bundler task to your gradle one. In the ant task i have the next settings, which i can't find in your implementation:
this
classpathproperty copies files from build resources toContents/Javabundled directory and would be used by the application at runtime.There are 2 problems i have:
Javadirectory it puts all the dependencies jars.Contentdirectory alsoResourcessubdirectory exists with my '128.icns' and some defaulten.lproj/Localizable.stringsmessages ("JRELoadError", "MainClassNameRequired", "JavaDirectoryNotFound"). Why it's absent in this gradle task?Thanks.