I will look into commons-exec since I wasn't aware of it and thnx for all the help.
Wb On 9/20/05, John Casey <[EMAIL PROTECTED]> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Ok, fair enough...but the maven process should probably install a > security manager to restrict who can call System.exit(..) (i.e. no-one > can! :) > > But there is still the potential for issues surrounding > OutOfMemoryError's and the like. If you're going the route of using a > separate java process, then you should check into commons-exec. I > haven't used it, but if it's the stuff extracted from Ant (and plexus, > actually), then it'll be suitable. > > - -john > > Wendell Beckwith wrote: > | 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: > | > | 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] > | | > | | > | | > > - --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.6 (GNU/Linux) > > iD8DBQFDMFXBK3h2CZwO/4URAvkbAJ4ir8+/w7fgWCTfH6XA0bgXLW2rmQCeKqh+ > 6H/krj8A/paO61kOgt4MHNU= > =Lywd > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
