Re: delete a directory by maven-antrun-plugin?

2006-12-05 Thread jiangshachina

Currently, I delete the directory via command rm -rf the_directory.
But I'll search the problem continuously.

a cup of Java, cheers!
Sha Jiang


jiangshachina wrote:
 
 Dear Wayne,
 As your said, the trouble is very strange.
 I created a build.xml,
 project basedir=. default=delete
   property name=dir value=Absolate_Path_To_The_Directory /
 
   target name=delete
   delete dir=${dir} includeemptydirs=true /
   /target
 /project
 and run ant, then I got a right result.
 
 a cup of Java, cheers!
 Sha Jiang
 
 
 Wayne Fay wrote:
 
 I'd expect there's some verbose=true kind of settings you can use in
 your ant call to get more information from Ant. This isn't really a
 Maven issue, per se, so you'll need to consult the Ant docs.
 
 Wayne
 
 On 12/3/06, jiangshachina [EMAIL PROTECTED] wrote:

 Hello,
 Now, I used absolute path, but the result wasn't changed :(
 I just run mvn antrun:run
 [INFO] [antrun:run]
 [INFO] Executing task
 [INFO] Executed tasks

 a cup of Java, cheers!
 Sha Jiang


 Ryan Slobojan wrote:
 
  Hi Sha,
 
  It appears that the antrun task is executing, but I suspect it's not
  finding the directory correctly. From the block of code you pasted, it
  looks like you're using a relative path to select the folder for
 deletion
  - I'd recommend that you use something like
  ${project.build.directory}/checkout/whatever as opposed to just
  checkout/whatever. You may find that antrun isn't running in the
 folder
  that you think it is, so you have to specify an absolute path.
 
  In case you're wondering, ${project.build.directory} points at
  [project]\target.
 
  Thanks,
 
  Ryan Slobojan
 
  -Original Message-
  From: jiangshachina [mailto:[EMAIL PROTECTED]
  Sent: Sun 12/3/2006 8:33 PM
  To: users@maven.apache.org
  Subject: Re: delete a directory by maven-antrun-plugin?
 
 
  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
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-scm-plugin/artifactId
 version1.0-beta-3/version
 configuration
 usernameusername/username
 passwordpassword/password
 
  checkoutDirectorycheckout/myproject/checkoutDirectory
 /configuration
 /plugin
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 version1.1/version
 executions
 execution
 idcompile/id

 phasegenerate-resources/phase
 configuration
 tasks
 delete
  dir=checkout\myproject\specific_directory
 
  includeemptydirs=true/
 /tasks
 /configuration
 goals
 goalrun/goal
 /goals
 /execution
 /executions

Re: delete a directory by maven-antrun-plugin?

2006-12-03 Thread jiangshachina

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
 idinitialize/id
 phaseinitialize/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
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
execution
configuration
tasks
delete dir=the_directory/
/tasks
/configuration
goals
goalrun/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#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]



Re: delete a directory by maven-antrun-plugin?

2006-12-03 Thread Dan Tran

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
 idinitialize/id
 phaseinitialize/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
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
execution
configuration
tasks
delete dir=the_directory/
/tasks
/configuration
goals
goalrun/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#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]




Re: delete a directory by maven-antrun-plugin?

2006-12-03 Thread jiangshachina

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
  idinitialize/id
  phaseinitialize/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
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 version1.1/version
 executions
 execution
 configuration
 tasks
 delete dir=the_directory/
 /tasks
 /configuration
 goals
 goalrun/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#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--tf2745727s177.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]



RE: delete a directory by maven-antrun-plugin?

2006-12-03 Thread Ryan Slobojan
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 
  idinitialize/id phaseinitialize/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
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 version1.1/version
 executions
 execution
 configuration
 tasks
 delete
dir=the_directory/
 /tasks
 /configuration
 goals
 goalrun/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]



RE: delete a directory by maven-antrun-plugin?

2006-12-03 Thread jiangshachina

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
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
version1.0-beta-3/version
configuration
usernameusername/username
passwordpassword/password

checkoutDirectorycheckout/myproject/checkoutDirectory
/configuration
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
execution
idcompile/id
phasegenerate-resources/phase
configuration
tasks
delete 
dir=checkout\myproject\specific_directory

includeemptydirs=true/
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
/build
addtionally, I have set scmconnection 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 
  idinitialize/id phaseinitialize/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
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 version1.1/version
 executions
 execution
 configuration
 tasks
 delete
 dir=the_directory/
 /tasks
 /configuration
 goals
 goalrun/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

Re: delete a directory by maven-antrun-plugin?

2006-12-03 Thread Wayne Fay

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
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-scm-plugin/artifactId
   version1.0-beta-3/version
   configuration
   usernameusername/username
   passwordpassword/password
   
checkoutDirectorycheckout/myproject/checkoutDirectory
   /configuration
   /plugin
   plugin
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   version1.1/version
   executions
   execution
   idcompile/id
   phasegenerate-resources/phase
   configuration
   tasks
   delete 
dir=checkout\myproject\specific_directory
   
includeemptydirs=true/
   /tasks
   /configuration
   goals
   goalrun/goal
   /goals
   /execution
   /executions
   /plugin
   /plugins
/build
addtionally, I have set scmconnection 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
  idinitialize/id phaseinitialize/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
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 version1.1/version
 executions
 execution
 configuration
 tasks
 delete
 dir=the_directory/
 /tasks
 /configuration
 goals
 goalrun/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

Re: delete a directory by maven-antrun-plugin?

2006-12-03 Thread jiangshachina

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
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
version1.0-beta-3/version
configuration
usernameusername/username
passwordpassword/password
   
 checkoutDirectorycheckout/myproject/checkoutDirectory
/configuration
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
execution
idcompile/id
phasegenerate-resources/phase
configuration
tasks
delete
 dir=checkout\myproject\specific_directory
   
 includeemptydirs=true/
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
 /build
 addtionally, I have set scmconnection 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

RE: delete a directory by maven-antrun-plugin?

2006-12-03 Thread Ryan Slobojan
Hi Sha,

It appears that the antrun task is executing, but I suspect it's not finding 
the directory correctly. From the block of code you pasted, it looks like 
you're using a relative path to select the folder for deletion - I'd recommend 
that you use something like ${project.build.directory}/checkout/whatever as 
opposed to just checkout/whatever. You may find that antrun isn't running in 
the folder that you think it is, so you have to specify an absolute path.

In case you're wondering, ${project.build.directory} points at [project]\target.

Thanks,

Ryan Slobojan

-Original Message-
From: jiangshachina [mailto:[EMAIL PROTECTED]
Sent: Sun 12/3/2006 8:33 PM
To: users@maven.apache.org
Subject: Re: delete a directory by maven-antrun-plugin?
 

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
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
version1.0-beta-3/version
configuration
usernameusername/username
passwordpassword/password
   
 checkoutDirectorycheckout/myproject/checkoutDirectory
/configuration
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
execution
idcompile/id
phasegenerate-resources/phase
configuration
tasks
delete
 dir=checkout\myproject\specific_directory
   
 includeemptydirs=true/
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
 /build
 addtionally, I have set scmconnection 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

RE: delete a directory by maven-antrun-plugin?

2006-12-03 Thread jiangshachina

Hello,
Now, I used absolute path, but the result wasn't changed :(
I just run mvn antrun:run
[INFO] [antrun:run]
[INFO] Executing task
[INFO] Executed tasks

a cup of Java, cheers!
Sha Jiang


Ryan Slobojan wrote:
 
 Hi Sha,
 
 It appears that the antrun task is executing, but I suspect it's not
 finding the directory correctly. From the block of code you pasted, it
 looks like you're using a relative path to select the folder for deletion
 - I'd recommend that you use something like
 ${project.build.directory}/checkout/whatever as opposed to just
 checkout/whatever. You may find that antrun isn't running in the folder
 that you think it is, so you have to specify an absolute path.
 
 In case you're wondering, ${project.build.directory} points at
 [project]\target.
 
 Thanks,
 
 Ryan Slobojan
 
 -Original Message-
 From: jiangshachina [mailto:[EMAIL PROTECTED]
 Sent: Sun 12/3/2006 8:33 PM
 To: users@maven.apache.org
 Subject: Re: delete a directory by maven-antrun-plugin?
  
 
 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
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
version1.0-beta-3/version
configuration
usernameusername/username
passwordpassword/password
   
 checkoutDirectorycheckout/myproject/checkoutDirectory
/configuration
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
execution
idcompile/id
phasegenerate-resources/phase
configuration
tasks
delete
 dir=checkout\myproject\specific_directory
   
 includeemptydirs=true/
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
 /build
 addtionally, I have set scmconnection 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

Re: delete a directory by maven-antrun-plugin?

2006-12-03 Thread Wayne Fay

I'd expect there's some verbose=true kind of settings you can use in
your ant call to get more information from Ant. This isn't really a
Maven issue, per se, so you'll need to consult the Ant docs.

Wayne

On 12/3/06, jiangshachina [EMAIL PROTECTED] wrote:


Hello,
Now, I used absolute path, but the result wasn't changed :(
I just run mvn antrun:run
[INFO] [antrun:run]
[INFO] Executing task
[INFO] Executed tasks

a cup of Java, cheers!
Sha Jiang


Ryan Slobojan wrote:

 Hi Sha,

 It appears that the antrun task is executing, but I suspect it's not
 finding the directory correctly. From the block of code you pasted, it
 looks like you're using a relative path to select the folder for deletion
 - I'd recommend that you use something like
 ${project.build.directory}/checkout/whatever as opposed to just
 checkout/whatever. You may find that antrun isn't running in the folder
 that you think it is, so you have to specify an absolute path.

 In case you're wondering, ${project.build.directory} points at
 [project]\target.

 Thanks,

 Ryan Slobojan

 -Original Message-
 From: jiangshachina [mailto:[EMAIL PROTECTED]
 Sent: Sun 12/3/2006 8:33 PM
 To: users@maven.apache.org
 Subject: Re: delete a directory by maven-antrun-plugin?


 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
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-scm-plugin/artifactId
version1.0-beta-3/version
configuration
usernameusername/username
passwordpassword/password

 checkoutDirectorycheckout/myproject/checkoutDirectory
/configuration
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
execution
idcompile/id
phasegenerate-resources/phase
configuration
tasks
delete
 dir=checkout\myproject\specific_directory

 includeemptydirs=true/
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
 /build
 addtionally, I have set scmconnection 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

Re: delete a directory by maven-antrun-plugin?

2006-12-03 Thread jiangshachina

Dear Wayne,
As your said, the trouble is very strange.
I created a build.xml,
project basedir=. default=delete
property name=dir value=Absolate_Path_To_The_Directory /

target name=delete
delete dir=${dir} includeemptydirs=true /
/target
/project
and run ant, then I got a right result.

a cup of Java, cheers!
Sha Jiang


Wayne Fay wrote:
 
 I'd expect there's some verbose=true kind of settings you can use in
 your ant call to get more information from Ant. This isn't really a
 Maven issue, per se, so you'll need to consult the Ant docs.
 
 Wayne
 
 On 12/3/06, jiangshachina [EMAIL PROTECTED] wrote:

 Hello,
 Now, I used absolute path, but the result wasn't changed :(
 I just run mvn antrun:run
 [INFO] [antrun:run]
 [INFO] Executing task
 [INFO] Executed tasks

 a cup of Java, cheers!
 Sha Jiang


 Ryan Slobojan wrote:
 
  Hi Sha,
 
  It appears that the antrun task is executing, but I suspect it's not
  finding the directory correctly. From the block of code you pasted, it
  looks like you're using a relative path to select the folder for
 deletion
  - I'd recommend that you use something like
  ${project.build.directory}/checkout/whatever as opposed to just
  checkout/whatever. You may find that antrun isn't running in the folder
  that you think it is, so you have to specify an absolute path.
 
  In case you're wondering, ${project.build.directory} points at
  [project]\target.
 
  Thanks,
 
  Ryan Slobojan
 
  -Original Message-
  From: jiangshachina [mailto:[EMAIL PROTECTED]
  Sent: Sun 12/3/2006 8:33 PM
  To: users@maven.apache.org
  Subject: Re: delete a directory by maven-antrun-plugin?
 
 
  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
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-scm-plugin/artifactId
 version1.0-beta-3/version
 configuration
 usernameusername/username
 passwordpassword/password
 
  checkoutDirectorycheckout/myproject/checkoutDirectory
 /configuration
 /plugin
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-antrun-plugin/artifactId
 version1.1/version
 executions
 execution
 idcompile/id

 phasegenerate-resources/phase
 configuration
 tasks
 delete
  dir=checkout\myproject\specific_directory
 
  includeemptydirs=true/
 /tasks
 /configuration
 goals
 goalrun/goal
 /goals
 /execution
 /executions
 /plugin
 /plugins
  /build
  addtionally, I have set scmconnection in project.
  I'm using command mvn scm:checkout antrun:run.
  In the console, I saw some

delete a directory by maven-antrun-plugin?

2006-12-02 Thread jiangshachina

Hello,
I want to delete a directory by maven-antrun-plugin,
I'm using the scripts below,
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
execution
configuration
tasks
delete dir=the_directory/
/tasks
/configuration
goals
goalrun/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]



Re: delete a directory by maven-antrun-plugin?

2006-12-02 Thread Dan Tran

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
   groupIdorg.apache.maven.plugins/groupId
   artifactIdmaven-antrun-plugin/artifactId
   version1.1/version
   executions
   execution
   configuration
   tasks
   delete dir=the_directory/
   /tasks
   /configuration
   goals
   goalrun/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]




Re: delete a directory by maven-antrun-plugin?

2006-12-02 Thread jiangshachina

Hello dan,
Exactly, I don't know which phase would be bined :(
I used
idinitialize/id
phaseinitialize/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
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
execution
configuration
tasks
delete dir=the_directory/
/tasks
/configuration
goals
goalrun/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#a7660876
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: delete a directory by maven-antrun-plugin?

2006-12-02 Thread jiangshachina

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
 idinitialize/id
 phaseinitialize/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
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.1/version
executions
execution
configuration
tasks
delete dir=the_directory/
/tasks
/configuration
goals
goalrun/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]