Issue Details (XML | Word | Printable)

Key: MEXEC-35
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Geoffrey De Smet
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 2.x Exec Plugin

Support mixing cmd line and pom configs

Created: 29/Sep/07 03:48 PM   Updated: 15/May/08 11:46 PM
Component/s: exec, java
Affects Version/s: 1.1-beta-1
Fix Version/s: future

Time Tracking:
Not Specified


 Description  « Hide
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).



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.