| Author |
ant target in maven.xml
|
kbidy stephane
Greenhorn
Joined: Apr 08, 2004
Posts: 3
|
|
Is it possible to call a target, defined in my own build.xml script ANT, in a goal Maven (in maven.xml)?? thank you for response
|
 |
Don Stadler
Ranch Hand
Joined: Feb 10, 2004
Posts: 451
|
|
|
It's possible to write a Maven plugin to use an Ant target if that is what you are asking....
|
 |
kbidy stephane
Greenhorn
Joined: Apr 08, 2004
Posts: 3
|
|
I don't know if I need to create a new plug-in... I have a build.xml (ant script), and I just need to call, in my maven.xml, a target which is described in my ant file... actually, I use the target "exec" to do this (like "<exec executable="ant.bat" os="Windows 2000"> <arg line="-f"/> <arg line="'mybuild.xml'"/> <arg line="mytarget"/>" I've got a pb with the "<ant>" target in maven...), but, it create a new java process, and I don't want that! I want to execute my target ant in the same process as maven.... Have you got an idea to do that?? perhaps, a plugin is necessary... I don't know
|
 |
 |
|
|
subject: ant target in maven.xml
|
|
|