On Oct 2, 2008, at 3:58 PM, Wayne Fay wrote:

But why are you needing to do this in the first place? Describe things
in more detail and perhaps someone will have a better recommendation.

I'm not trying to do anything special. I just want to run a Java program with different parameters. Sometimes I need to run two different Java programs for one project.

If you want a specific example, here's one:

http://volta.svn.sourceforge.net/viewvc/volta/cascade/build.xml?&view=markup

In this Ant script, Java is invoked in different ways depending on which target is specified.

ant quick-test
--> runs the main application with some simple test parameters

ant profile
--> runs a custom profiler program to test the performance of the application

I simply want to do the same thing in Maven.

Profiles can solve your problem.

Thanks for the pointer; I think that will work.



Trevor


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to