The thing is, when the zip dist is generated, it uses the default conf
file. What I did (and I saw it in some forum or blog I can't recall)
is to do this task in the suite's build script:
<target name="build-launchers" depends="suite.build-launchers">
<!--run.args.extra=-J-Xss512k -J-Xms64m -J-Xmx256m -J-XX:PermSize=32m
-J-XX:MaxPermSize=128m -J-XX:MaxHeapFreeRatio=50 -J-Xverify:none
-J-Djava.net.preferIPv4Stack=true -J-XX:CompileThreshold=100
-J-Dsun.java2d.d3d=true -J-Dsun.java2d.noddraw=false
-J-Dsun.java2d.ddoffscreen=true -J-Dsun.java2d.ddscale=true
-J-Dsun.java2d.translaccel=true -J-Dj3d.rend=d3d-->
<echo message="Updating conf defaults for branding"/>
<echo file="${build.launcher.dir}/etc/${app.name}.conf">
# ${HOME} will be replaced by user home directory according to platform
default_userdir="${HOME}/.${app.name}/dev"
default_mac_userdir="${HOME}/Library/Application Support/.${app.name}/dev"
# options used by the launcher by default, can be overridden by explicit
# command line switches
default_options="--branding ${branding.token} --J-server -J-Xss2m
-J-Xms32m -J-Xmx512m -J-XX:PermSize=32m -J-XX:MaxPermSize=512m
-J-XX:MaxHeapFreeRatio=50 -J-Xverify:none
-J-Djava.net.preferIPv4Stack=true -J-XX:CompileThreshold=100"
# for development purposes you may wish to append:
-J-Dnetbeans.logger.console=true -J-ea
# default location of JDK/JRE, can be overridden by using --jdkhome
#jdkhome="/path/to/jdk"
# clusters' paths separated by path.separator (semicolon on Windows,
colon on Unices)
#extra_clusters=
</echo>
</target>
Basically what it does is to dump the conf file from the script.
I hope it helps.
Post by Damian CareyRob
I do the following on Windows ...
1. Open C:\Program Files (x86)\NetBeans 6.9\harness\etc\app.conf
2. Change "-J-Xmx64m" to "-J-Xmx300m"
Depending on your permissions / setup you might need to copy the app.conf
file elsewhere (perhaps to the desktop - or anywhere you have edit
permissions), edit it, then copy it back.
Your "MyApp.conf" is actually created by copying from the "app.conf" above.
Cheers,
-Damian
I noticed that the default memory set in the myapp/etc/myapp.conf file is
64M using a generated installer from NetBeans (which is very cool by the
way).
Is there a way to tell the NetBeans platform installer-generator to change
the default values to something else? (I’d like to avoid having a post
processing step after installation.)
Thanks,
Rob
--
There are only 10 types of people in the world —
those who understand binary, and those who don't.