[
http://jira.codehaus.org/browse/MEXEC-35?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jerome Lacoste updated MEXEC-35:
--------------------------------
Component/s: java
exec
> Support mixing cmd line and pom configs
> ---------------------------------------
>
> Key: MEXEC-35
> URL: http://jira.codehaus.org/browse/MEXEC-35
> Project: Maven 2.x Exec Plugin
> Issue Type: New Feature
> Components: exec, java
> Affects Versions: 1.1-beta-1
> Reporter: Geoffrey De Smet
> Fix For: future
>
>
> I am using the pom config like this:
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>exec-maven-plugin</artifactId>
> <configuration>
> <executable>${JAVA_HOME}/bin/java</executable>
> <arguments>
> <argument>-Xmx128M</argument>
> <argument>-server</argument>
> <argument>-classpath</argument>
> <classpath/>
> <argument>${exec.myMainClass}</argument> <!--
> hack -->
> <argument>${exec.myProgramArgs}</argument><!--
> hack -->
> </arguments>
> </configuration>
> </plugin>
> And then at the cmd line, I set ${exec.myMainClass} and ${exec.myProgramArgs}.
> If I make exec.myProgramArgs an empty String, my main java class doesn't get
> an empty args array, but one with a single value of "-Xmx128M". If it's not
> an empty string, the "-Xmx128M" isn't added... wierd.
> Anyway, it would be nice to support mixing pom configuration with cmd line
> arguments better. Even if only to configure the general stuff (classpath,
> memory) in the pom and the non-general stuff on the command line (program
> arguments etc).
--
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