You can specify the phase as adding <phase>clean</phase> in the maven-ant-run plugin config. This will make sure these ant tasks are run on the clean

Maruf


Great Man wrote:
Thanks Wayne.

I was able to build my project by integrating ant tasks in <tasks>. I issued 
mvn compile and my ant tasks were executed.

Now is the next phase. It is about clean up.
When I do mvn clean then target directory is deleted but my project was creating some 
other directories outside of target diretcory and I need to delete them too 
explicitly which I should be able to do via ant tasks but I can not place them in  
<tasks>. Any idea how to approach this ?

Thanks in advance

Petr





Wayne Fay <[EMAIL PROTECTED]> wrote: This is very well documented on the Maven 
site:
http://maven.apache.org/guides/mini/guide-using-ant.html

Wayne

On 4/3/07, Great Man  wrote:
Note: forwarded message attached.

 ________________________________
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.

---------- Forwarded message ----------
From: Great Man To: [email protected]
Date: Tue, 3 Apr 2007 12:45:29 -0700 (PDT)
Subject: Ant Script from Maven
I have one ant script and I wanna call it from my maven pom. Is this
possible ? Any pointer is appreciated. My maven knowledge is of novice level
so please care to explain. Thanks in advance.

Petr




 ________________________________
Now that's room service! Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.

Reply via email to