java - Add a customized setting into Info.plist using javaFx ant task -
i want add following setting in info.plist of application bunld osx(yosemite).
<string>disable app nap express</string> <key>nsappsleepdisabled</key> <true/>
we use javafx ant task build our application bundle this:
<fx:application name="${macosx_app}" mainclass="${mainclass}" version="1.0"> </fx:application> <fx:bundleargument arg="mac.cfbundleversion" value="1.0"/> <fx:resources> <fx:fileset type="jar" dir="package/macosx/"/> <fx:fileset type="jar" dir="lib"/> </fx:resources> <fx:platform j2se="7.0"> <fx:jvmarg value="-xdock:icon=$appdir/java/${macicon}" /> <fx:jvmarg value="-xms128m" /> <fx:jvmarg value="-xmx1024m" /> <fx:jvmarg value="-dapple.laf.usescreenmenubar=true" /> <fx:jvmarg value="-dcom.apple.macos.use-file-dialog-packages=true" /> <fx:jvmarg value="-dcom.apple.macos.usescreenmenubar=true" /> <fx:jvmarg value="-dapple.awt.application.name=${macosx_app}" /> <fx:jvmarg value="-dcom.apple.smalltabs=true" /> </fx:platform> </fx:deploy>
how can edit ant build.xml add setting info.plist? read document of oracle javafx https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/javafx_ant_task_reference.html , https://docs.oracle.com/javase/8/docs/technotes/guides/deploy/javafx_ant_tasks.html#ciacdjhc not useful information. there have such experience add cutomazied setting info.plist using javafx ant task? thank in advance.
you can add
<fx:deploy ... verbose="true" ...>
ant output sth. "config files saved /var/folders/.../macosx" among other stuff. there can find default files info.plist used while building. can copy , change them. ant tell you, put customized files found next build. it's sth. "package/macosx/" in build folder.
Comments
Post a Comment