thanks, I'm still lost.  This section did not make much sense to me.


David M. Karr wrote:
> 
> CheapLisa wrote:
>> I want to call some ant tasks when I run maven.
>> 
>> I have read all about the maven antrun plugin and found some
>> examples, but the documentation is a wee bit hard
>> for me to understand, and does not lead me to what I wish to accomplish.
>> 
>> I want all my ant tasks in a build.xml file (not in the pom.xml).
>> 
>> But when I execute:  mvn compile install
>> 
>> I want it to run (by default) one or more ant tasks 
>> (in a specific order) that are in the build.xml.
>> 
>> Is there a way to do this?  When I type $mvn compile install I want
>> the build process to be oblivous to the fact that ant is being called,
>> unless there is a problem.
>> 
>> If the ant tasks fails, I want to fail the build as well.
>> 
>> thanks
> 
> I would assume the following is a good example of this kind of thing: 
> <http://www.sonatype.com/books/maven-book/reference/lifecycle.html>.
> 
> You would use the "compile" phase instead of "pre-clean", and the inline 
> task configuration would just use an "ant" task to call a target in your 
> buildfile.
> 
> I don't know whether a failure in the Ant script will cause a top-level 
> build failure.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-call-ant-task-from-maven---can-not-find-a-good-example-tp22992996p22997778.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to