Re: antrun plugin in both parent and child run tasks twice

2006-01-30 Thread Martin van der Plas

Hi Antrun developer,

Please respond.

Martin

Martin van der Plas wrote:


Hi,

When I have a parent and child pom, and both have an antrun plugin 
entry, I notice that activated anttask run twice.

See attached poms and the output below.

My directory structure:
parent/
/pom.xml
/child
---/pom.xml



Is this behaviour intended? How should I change my poms?

Thanks

Martin


mvn test
[INFO] Scanning for projects...
[INFO] 
-

---
[INFO] Building child
[INFO]task-segment: [test]
[INFO] 
-

---
[INFO] [antrun:run {execution: test1}]
[INFO] Executing tasks
[echo] test1
[INFO] Executed tasks
[INFO] [antrun:run {execution: childTest1}]
[INFO] Executing tasks
[echo] childTest1
[INFO] Executed tasks
[INFO] [antrun:run {execution: test1}]
[INFO] Executing tasks
[echo] test1
[INFO] Executed tasks
[INFO] [antrun:run {execution: childTest1}]
[INFO] Executing tasks
[echo] childTest1
[INFO] Executed tasks
[INFO] [antrun:run {execution: test3}]
[INFO] Executing tasks
[echo] test3
[INFO] Executed tasks
[INFO] [antrun:run {execution: childTest3}]
[INFO] Executing tasks
[echo] childTest3
[INFO] Executed tasks
[INFO] [antrun:run {execution: test3}]
[INFO] Executing tasks
[echo] test3
[INFO] Executed tasks
[INFO] [antrun:run {execution: childTest3}]
[INFO] Executing tasks
[echo] childTest3
[INFO] Executed tasks
[INFO] 
-

---
[INFO] BUILD SUCCESSFUL
[INFO] 
-

---




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




--
Groeten,

   Martin

mailto:[EMAIL PROTECTED]
tel: +31 (0) 20-7988464
mob: +31 (0) 6-21551921



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



antrun plugin in both parent and child run tasks twice

2005-12-16 Thread Martin van der Plas

Hi,

When I have a parent and child pom, and both have an antrun plugin 
entry, I notice that activated anttask run twice.

See attached poms and the output below.

My directory structure:
parent/
/pom.xml
/child
---/pom.xml



Is this behaviour intended? How should I change my poms?

Thanks

Martin


mvn test
[INFO] Scanning for projects...
[INFO] -
---
[INFO] Building child
[INFO]task-segment: [test]
[INFO] -
---
[INFO] [antrun:run {execution: test1}]
[INFO] Executing tasks
[echo] test1
[INFO] Executed tasks
[INFO] [antrun:run {execution: childTest1}]
[INFO] Executing tasks
[echo] childTest1
[INFO] Executed tasks
[INFO] [antrun:run {execution: test1}]
[INFO] Executing tasks
[echo] test1
[INFO] Executed tasks
[INFO] [antrun:run {execution: childTest1}]
[INFO] Executing tasks
[echo] childTest1
[INFO] Executed tasks
[INFO] [antrun:run {execution: test3}]
[INFO] Executing tasks
[echo] test3
[INFO] Executed tasks
[INFO] [antrun:run {execution: childTest3}]
[INFO] Executing tasks
[echo] childTest3
[INFO] Executed tasks
[INFO] [antrun:run {execution: test3}]
[INFO] Executing tasks
[echo] test3
[INFO] Executed tasks
[INFO] [antrun:run {execution: childTest3}]
[INFO] Executing tasks
[echo] childTest3
[INFO] Executed tasks
[INFO] -
---
[INFO] BUILD SUCCESSFUL
[INFO] -
---


http://maven.apache.org/POM/4.0.0"; 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  test
  parent
  parent
  pom
  1.0-SNAPSHOT

  
compile

  
org.apache.maven.plugins
maven-antrun-plugin


  
test1
generate-sources

  run


  

  

  

  
test2
clean

  run


  

  

  

  
test3
test-compile

  run


  

  

  


  


  


http://maven.apache.org/POM/4.0.0"; 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
  4.0.0
  
  test
  parent
  1.0-SNAPSHOT
  ..
  

  test
  child
  child
  pom
  1.0-SNAPSHOT

  
compile

  
org.apache.maven.plugins
maven-antrun-plugin


  
childTest1
generate-sources

  run


  

  

  

  
childTest2
clean

  run


  

  

  

  
childTest3
test-compile

  run


  

  

  


  


  



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