This has been discussed a few times before. Yes, this is a reasonable library for doing so, but has some limitations. You can also use Runtime.exec (even more limitations), or help out with the pre-alpha library jakarta commons-exec.
HTH, Brett 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? > > Thanks, > > Chris > > > Chris Stevenson > > Dresdner Kleinwort Wasserstein > > ------ > > > -------------------------------------------------------------------------------- > The information contained herein is confidential and is intended solely for > the > addressee. Access by any other party is unauthorised without the express > written permission of the sender. If you are not the intended recipient, > please > contact the sender either via the company switchboard on +44 (0)20 7623 8000, > or > via e-mail return. If you have received this e-mail in error or wish to read > our > e-mail disclaimer statement and monitoring policy, please refer to > http://www.drkw.com/disc/email/ or contact the sender. 3166 > -------------------------------------------------------------------------------- > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
