I just want to delete directory,
the work isn't related to "compile", "package", or others.

a cup of Java, cheers!
Sha Jiang


jiangshachina wrote:
> 
> Hello dan,
> Exactly, I don't know which phase would be bined :(
> I used
> <id>initialize</id>
> <phase>initialize</phase>
> but the result was the same.
> 
> a cup of Java, cheers!
> Sha Jiang
> 
> 
> dan tran wrote:
>> 
>> You may want to bind your antrun execution to a phase.
>> 
>> -D
>> 
>> 
>> On 12/2/06, jiangshachina <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>> Hello,
>>> I want to delete a directory by maven-antrun-plugin,
>>> I'm using the scripts below,
>>> <plugin>
>>>        <groupId>org.apache.maven.plugins</groupId>
>>>        <artifactId>maven-antrun-plugin</artifactId>
>>>        <version>1.1</version>
>>>        <executions>
>>>                <execution>
>>>                        <configuration>
>>>                                <tasks>
>>>                                        <delete dir="the_directory"/>
>>>                                </tasks>
>>>                        </configuration>
>>>                        <goals>
>>>                                <goal>run</goal>
>>>                        </goals>
>>>                </execution>
>>>        </executions>
>>> </plugin>
>>> then I run "mvn antrun:run",
>>> unfortunately, Maven didn't delete the directory.
>>> How can I resolve the trouble?
>>>
>>> a cup of Java, cheers!
>>> Sha Jiang
>>> --
>>> View this message in context:
>>> http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7660767
>>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7660899
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