> We can execute ant commands from Groovy files with the help of
> "AntBuilder". Do we have any method by which we can execute maven
> commands from Groovy files?
Your going to have to launch maven as an external process. http://
groovy.codehaus.org/groovy-jdk/java/lang/String[].html makes this
pretty easy.
def process = (["mvn", "clean"] as String[]).execute()
process.in.eachLine { line ->
println line
}
process.waitFor()
> I have some working maven scripts
Don't let anyone the Maven team hear you say Maven "scripts". That's
blasphemy to them.
LD.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
On Feb 28, 2008, at 12:43 PM, "Murthy Perla" <murth...@gmail.com>
wrote:
Erik Husby
---
Erik Husby
Senior Software Engineer I
Broad Institute of MIT and Harvard
Rm. 2139, 320 Charles St, Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227
email: mhu...@broad.mit.edu AIM: ErikAtBroad
Paul
> <mailto:mhu...@broad.mit.edu>> wrote:
> >
> > Yes. Simply use the Antbuilder.exec method to exec Maven.
> >
> >
> > On Feb 28, 2008, at 12:43 PM, "Murthy Perla"
> > <murth...@gmail.com <mailto:murth...@gmail.com>>
On 2/29/08, Erik Husby <mhu...@broad.mit.edu> wrote: