Dear Wayne, I followed your instructions, but didn't find any interesting things.
It's some of output below [DEBUG] org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected for runtime) [DEBUG] org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected for runtime) [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project: org.apache.maven:maven-plugin-api:jar:2.0.1 from the repository. [DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.1:runtime (selected for runtime) [DEBUG] ant:ant:jar:1.6.5:runtime (selected for runtime) [DEBUG] ant:ant-launcher:jar:1.6.5:runtime (selected for runtime) [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run'--> [DEBUG] (f) artifacts = [ant:ant:jar:1.6.5:runtime, ant:ant-launcher:jar:1.6.5:runtime, org.apache.maven:maven-project:jar:2.0.1:runtime, org.apache.maven:maven-plugin-api:jar:2.0.1:runtime] [DEBUG] (f) project = [EMAIL PROTECTED] [DEBUG] (f) tasks = [DEBUG] -- end configuration -- [INFO] [antrun:run] [INFO] Executing tasks [INFO] Executed tasks [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL a cup of Java, cheers! Sha Jiang Wayne Fay wrote: > > Add an -X ie mvn -X scm:checkout antrun:run to get more information > while Maven is running. > > Wayne > > On 12/3/06, jiangshachina <[EMAIL PROTECTED]> wrote: >> >> Hello Ryan, >> Really, I didn't create a right Ant statements. >> But my trouble isn't related to Ant scripts, but Maven work flow. >> The following is my main pom scripts, >> <build> >> <plugins> >> <plugin> >> <groupId>org.apache.maven.plugins</groupId> >> <artifactId>maven-scm-plugin</artifactId> >> <version>1.0-beta-3</version> >> <configuration> >> <username>username</username> >> <password>password</password> >> >> <checkoutDirectory>checkout/myproject</checkoutDirectory> >> </configuration> >> </plugin> >> <plugin> >> <groupId>org.apache.maven.plugins</groupId> >> <artifactId>maven-antrun-plugin</artifactId> >> <version>1.1</version> >> <executions> >> <execution> >> <id>compile</id> >> <phase>generate-resources</phase> >> <configuration> >> <tasks> >> <delete >> dir="checkout\myproject\specific_directory" >> >> includeemptydirs="true"/> >> </tasks> >> </configuration> >> <goals> >> <goal>run</goal> >> </goals> >> </execution> >> </executions> >> </plugin> >> </plugins> >> </build> >> addtionally, I have set <scm><connection> in <project>. >> I'm using command mvn scm:checkout antrun:run. >> In the console, I saw some words about antrun work, but it did nothing :( >> >> a cup of Java, cheers! >> Sha Jiang >> >> >> Ryan Slobojan wrote: >> > >> > Hi Sha, >> > >> > There are a couple things I can recommend: >> > >> > * To see what you are deleting, do: >> > >> > <tasks> >> > <echo message="Deleting ${the_directory}..."/> >> > <delete dir="the_directory"/> >> > </tasks> >> > >> > Of course, if you are hardcoding a directory as opposed to using e.g. >> > ${basedir}/something, then this won't be very helpful >> > >> > * Ant's delete task has an annoying habit of deleting *only* the files >> > inside of a directory, not the directories themselves. To get it ot >> > delete the directories, you need to: >> > >> > <delete dir="the_directory" includeemptydirs="true"/> >> > >> > Thanks, >> > >> > Ryan Slobojan >> > >> > -----Original Message----- >> > From: jiangshachina [mailto:[EMAIL PROTECTED] >> > Sent: Sunday, December 03, 2006 2:34 AM >> > To: users@maven.apache.org >> > Subject: Re: delete a directory by maven-antrun-plugin? >> > >> > >> > Dear dan, >> >> are you sure you did point ant:delete to a valid directory? ;-) >> > Really, I don't know the plugin. >> > How can I get its home page? >> > >> > a cup of Java, cheers! >> > Sha Jiang >> > >> > >> > dan tran wrote: >> >> >> >> are you sure you did point ant:delete to a valid directory? ;-) >> >> >> >> i works for me here >> >> >> >> -D >> >> >> >> >> >> On 12/3/06, jiangshachina <[EMAIL PROTECTED]> wrote: >> >>> >> >>> >> >>> Hi, >> >>> In fact, I need to delete some directories after checkout one module >> >>> from CVS. >> >>> and it seems that I cannot checkout several modules in one pom, then >> >>> I made the idea. >> >>> >> >>> a cup of Java, cheers! >> >>> Sha Jiang >> >>> >> >>> >> >>> jiangshachina wrote: >> >>> > >> >>> > 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--tf27 >> >>> 45727s177.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--tf27 >> >>> 45727s177.html#a7661328 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--tf27457 >> > 27s177.html#a7661702 >> > Sent from the Maven - Users mailing list archive at Nabble.com. >> > >> > >> > --------------------------------------------------------------------- >> > 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] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7670396 >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> 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] > > > -- View this message in context: http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7670743 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]