True, it is a java main() call because the use ZeroG's LaunchAnywhere. LaunchAnywhere creates a native executable that reads a config file that lists the classpath, args and the main class to execute. However because I didn't write the code nor do have the source code, I don't know if the code somewhere will call System.exit(). If it does then my maven process is dead, which is why I want the ability to run this java main() in a separate process. Makes sense?
Wb On 9/20/05, John Casey <[EMAIL PROTECTED]> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > it's not a command line execution...it's a java main() call...right? > > Trygve Laugstøl wrote: > | On Tue, 2005-09-20 at 13:09 -0500, Wendell Beckwith wrote: > | > |>I just re-read you email and I'm confused by your comment, please > clarify if > |>possible. But isn't what I've been hopefully explaining is the > creation of a > |>mojo that wraps a command line process. I have written the mojos > (agitate > |>and dashboard) an users only need to reference the plugin in their build > |>element. If the defaults are right for them, say they have a 80% code > |>coverage target instead of the default of 70% then they can add a > <coverage> > |>element to the <configuration> element for the plugin. Now the plugin > takes > |>the prams and puts then in the correct order and that is where I'm > currently > |>am. I would like to have a maven-java-plugin or something like it that > my > |>plugin can depend on to actually execute the process and tie its output > |>stdout and stderr back to my process. That's all I need. I'm not > advocating > |>giving users the ability to execute any java command from their pom. > | > | > | For now, until all the hot air in commons-exec stabilizes take a look at > | plexus-utils and the org.codehaus.plexus.util.cli package. For a simple > | example take a look at [1]. > | > | [1]: > | > > http://svn.apache.org/viewcvs.cgi/maven/continuum/trunk/continuum-core/src/main/java/org/apache/maven/continuum/utils/shell/DefaultShellCommandHelper.java?rev=227315&view=markup > | > | -- > | Trygve > | > | > | --------------------------------------------------------------------- > | To unsubscribe, e-mail: [EMAIL PROTECTED] > | For additional commands, e-mail: [EMAIL PROTECTED] > | > | > | > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.6 (GNU/Linux) > > iD8DBQFDMFI/K3h2CZwO/4URAvoXAKCpFFlfc7CDSG35HygJdqAN0aHfbgCeMMzA > bc1WTt3I4WBoJycsmRICNXc= > =rA82 > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
