tmulle commented on issue #4242:
URL: https://github.com/apache/netbeans/issues/4242#issuecomment-1300693050

   @mbien Thanks for the list of modules to add.
   
   It's been awhile and I was just wondering, how do I set those options in my 
project so that when the installers and application is built all of those 
additional module command line parameters get into the /etc/myapplication.conf 
file automatically? I'm hoping I don't have to manually add those parameters 
after each build.
   
   If I look in the /etc/netbeans.conf of my IDE I see an entry like this:
   ```
   netbeans_default_options="-J-XX:+UseStringDeduplication -J-Xss2m  
-J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true 
-J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true 
-J-Dsun.zip.disableMemoryMapping=true -J-Dplugin.manager.check.updates=false 
-J-Dnetbeans.extbrowser.manual_chrome_plugin_install=yes  
-J--add-opens=java.base/java.net=ALL-UNNAMED 
-J--add-opens=java.base/java.lang.ref=ALL-UNNAMED 
-J--add-opens=java.base/java.lang=ALL-UNNAMED 
-J--add-opens=java.base/java.security=ALL-UNNAMED 
-J--add-opens=java.base/java.util=ALL-UNNAMED 
-J--add-opens=java.base/java.nio=ALL-UNNAMED 
-J--add-exports=java.base/sun.reflect.annotation=ALL-UNNAMED 
-J--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED 
-J--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED 
-J--add-opens=java.desktop/javax.swing.text=ALL-UNNAMED 
-J--add-opens=java.desktop/javax.swing=ALL-UNNAMED 
-J--add-opens=java.desktop/java.awt=ALL-UNNAMED 
-J--add-opens=java.desktop/java.awt.event=ALL-UNNA
 MED -J--add-opens=java.desktop/sun.awt.X11=ALL-UNNAMED 
-J--add-opens=java.desktop/javax.swing.plaf.synth=ALL-UNNAMED 
-J--add-opens=java.desktop/com.sun.java.swing.plaf.gtk=ALL-UNNAMED 
-J--add-opens=java.desktop/sun.awt.shell=ALL-UNNAMED 
-J--add-opens=java.desktop/sun.awt.im=ALL-UNNAMED 
-J--add-exports=java.desktop/sun.awt=ALL-UNNAMED 
-J--add-exports=java.desktop/java.awt.peer=ALL-UNNAMED 
-J--add-exports=java.desktop/com.sun.beans.editors=ALL-UNNAMED 
-J--add-exports=java.desktop/sun.swing=ALL-UNNAMED 
-J--add-exports=java.desktop/sun.awt.im=ALL-UNNAMED 
-J--add-exports=java.desktop/com.sun.java.swing.plaf.motif=ALL-UNNAMED 
-J--add-exports=java.desktop/com.apple.eio=ALL-UNNAMED 
-J--add-opens=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED 
-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED 
-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED 
-J--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED 
-J--add-opens=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNA
 MED -J--add-opens=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED 
-J--add-opens=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED 
-J--add-opens=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED 
-J--add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED 
-J--add-opens=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED 
-J--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED 
-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED 
-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED 
-J--add-exports=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED 
-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED 
-J--add-exports=jdk.compiler/com.sun.tools.javac.jvm=ALL-UNNAMED 
-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED 
-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED 
-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED 
-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
  -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED 
-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED 
-J--add-modules=jdk.jshell -J--add-opens=jdk.jshell/jdk.jshell=ALL-UNNAMED 
-J--add-exports=jdk.jdeps/com.sun.tools.classfile=ALL-UNNAMED 
-J--add-exports=jdk.jdeps/com.sun.tools.javap=ALL-UNNAMED 
-J--add-exports=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED 
-J--add-exports=java.management/sun.management=ALL-UNNAMED 
-J-XX:+IgnoreUnrecognizedVMOptions"
   ```
   
   When I look in the generated /etc/snapshotanalyzer.conf of my NetBeans 
platform application this is all I have in that file:
   ```
   
   default_userdir="${DEFAULT_USERDIR_ROOT}/dev"
   default_cachedir="${DEFAULT_CACHEDIR_ROOT}/dev"
   
   # options used by the launcher by default, can be overridden by explicit
   # command line switches
   default_options="--branding snapshotanalyzer"
   # 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 <dir> 
switch
   #jdkhome="/path/to/jdk"
   
   # clusters' paths separated by path.separator (semicolon on Windows, colon 
on Unices)
   #extra_clusters=
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to