Generated bat fails if extraJvmArguments have multiline content
---------------------------------------------------------------
Key: MOJO-1021
URL: http://jira.codehaus.org/browse/MOJO-1021
Project: Mojo
Issue Type: Bug
Components: appassembler
Environment: Maven-2.0.8
appassembler-maven-plugin-1.0-alpha-2
Reporter: Marat Radchenko
Attachments: multiline_jvm_args_fix.patch
Here is our plugin declaration:
{code:xml}
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appassembler-maven-plugin</artifactId>
<version>1.0-alpha-2</version>
<configuration>
<programs>
<program>
<mainClass>${project.groupId}.main.Main</mainClass>
<name>${project.artifactId}</name>
</program>
</programs>
<extraJvmArguments>
-Djava.awt.headless=true -ea -Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006
-Djava.endorsed.dirs=repo/javax/xml/bind/jaxb-api/2.1${path.separator}repo/javax/xml/ws/jaxws-api/2.1-1
-ea
-Djavax.net.ssl.trustStore=${project.basedir}/src/main/config/truststore
-Djavax.net.ssl.trustStorePassword=password
</extraJvmArguments>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>assemble</goal>
</goals>
</execution>
</executions>
</plugin>
{code}
The sensitive part is extraJvmArguments. Generated launcher contains this:
{code}
set EXTRA_JVM_ARGUMENTS=-Djava.awt.headless=true -ea -Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006
-Djava.endorsed.dirs=repo/javax/xml/bind/jaxb-api/2.1:repo/javax/xml/ws/jaxws-api/2.1-1
-ea
-Djavax.net.ssl.trustStore=/home/marat/projects/billing/impl/src/main/config/truststore
-Djavax.net.ssl.trustStorePassword=password
{code}
However this is not valid.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email