On 10/24/05, Stevenson, Chris <[EMAIL PROTECTED]> wrote: > Dear All, > > Does anyone know what is the best way to execute a native command in a mojo? > I've seen a couple of Mojo's using the CommandLine class in: > > org.apache.maven.it.cli > > Is that the recommended method?
I will add this to Brett's comment: - if you just need to execute a command line and do not much more, you can maybe use the exec or execute plugin (found in mojo-sandbox) (http://mojo.codehaus.org) - special case: if you need to execute a SDK command ($JAVA_HOME/bin/yourcommand), you migth want to look at the keytool and javadoc plugins. - I really hope commons-exec to become more usable and the preferred way to run commands later one. Today it does most of what plexus cli does. It will do a little bit more one day. Read the [EMAIL PROTECTED] archive mailing list for more info. Once commons-dev is released, I will at least retrofit it into all the plugins I wrote. Cheers, Jerome --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
