When building a JNLP distribution for a NetBeans Platform Application project, locale JAR files are included in the build by the makejnlp taks. (In my version, the locales pt_BR, ru, ja, zh_CN are included.) These locales are not required, and are therefore a waste of time (signing the JARs at build time), disk space, and network bandwidth.
Looking at the source code for the makejnlp task (org.netbeans.nbbuild.MakeJNLP.java), it appears that this feature is hard-coded, so the locale jars cannot be excluded by manipulating filesets.
Please provide an option for the makejnlp task that will exclude unnecessary locale JARs, or alternatively only include required local JARs. It would be great if this option was implemented in jnlp.xml with a property that can be easily customised.
where jnlp.included.locales defaults to "*" to provide a backward-compatible "all provided locales", but can be set to "" to exclude all locale JARs.
I would love to see this added but perhaps enhanced a little to support the use-case where developers can select the locales they want supported (All/None/Some subset).
After upgrading our internal application with NB RCP version NB691 to NB73 we saw the following:
- Maven Build times significantly increased as we need to sign every jar for webstart deployments so there are now a lot more jars.
- Applications launched via webstart took longer to load due to the increased number of files to download and also webstart validationg each jar in the cache compared to the server.
For ant projects, add to projects.properties file empty propety(jnlp.included.locales=), then no locales will be added, if property is removed, then all locales are will be added, otherwise add particular locales deliminated by comma (jnlp.included.locales=pt_BR,ja).
is there a change this will be backported to netbeans platfrom 7?
netbeans platform 7 is just to slow in building/signing and starting now