简体   繁体   中英

How to make maven appassembler use javaw instead of java in generated scripts

是否可以使Maven Appassembler插件生成使用“ javaw”而不是“ java”的启动脚本?

In Appassembler 1.3 you can do it by configuring the showConsoleWindow option in the POM:

<showConsoleWindow>flase</showConsoleWindow>

This will change the line in the resulting Script from

if "%JAVACMD%"=="" set JAVACMD=java

to this

if "%JAVACMD%"=="" set JAVACMD=start /min javaw

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM