[
https://jira.codehaus.org/browse/MAPPASM-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=291365#comment-291365
]
Lukasz Szelag commented on MAPPASM-144:
---------------------------------------
Actually, I already solved the second issue (with nested quotes) by wrapping
each extra JVM argument in its own <extraArgument> tag. I suppose that this is
consitent with intended plugin usage. However, I still need an ability to pass
a variable number of arguments in a single line. In my project, JVM settings
are externalized into a property file and as a workaround I define one property
for each argument. Further, there are different property configuration files
for each environment, and the number of JVM arguments is not always the same
(i.e. between DEV and PROD).
> jvmSettings per program hide global extraJvmArguments
> -----------------------------------------------------
>
> Key: MAPPASM-144
> URL: https://jira.codehaus.org/browse/MAPPASM-144
> Project: Mojo AppAssembler Plugin
> Issue Type: Bug
> Affects Versions: 1.2
> Environment: Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400)
> Java version: 1.7.0_01
> Java home: C:\programs\jse-1.7.0_01\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7" version: "6.1" arch: "amd64" Family: "windows"
> appassembler-maven-plugin 1.2 (from staging)
> Reporter: Lukasz Szelag
>
> I appears that system properties defined under <jvmSettings> (per program),
> hide (instead of appending to) global JVM arguments defined via
> <extraJvmArguments> tag. In addition, passing extra arguments via
> <extraArguments> (per program), and in combination with <jvmSettings>, makes
> the former to be included in quotes, breaking the generated script
> {code:title=pom.xml}
> <configuration>
> <extraJvmArguments>IGNORED</extraJvmArguments>
> <programs>
> <program>
> <name>startClient</name>
> <mainClass>x.y.Z</mainClass>
> <jvmSettings>
> <systemProperties>
>
> <systemProperty>log4j.configuration=log4j.xml</systemProperty>
> </systemProperties>
> <extraArguments>
> <extraArgument>-Xms64m -Xmx256m</extraArgument>
> </extraArguments>
> </jvmSettings>
> </program>
> </programs>
> </configuration>
> {code}
> {code:title=Generated script}
> EXTRA_JVM_ARGUMENTS=""-Xms64m -Xmx256m" -Dlog4j.configuration=log4j.xml"
> {code}
> {code:title=Expected behavior}
> EXTRA_JVM_ARGUMENTS="IGNORED -Xms64m -Xmx256m -Dlog4j.configuration=log4j.xml"
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.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