Ant tags are processing by jelly that is embedded in Maven.
I think it's a jelly bug and not a Maven bug.

Emmanuel

----- Original Message ----- 
From: "Jefferson K. French" <[EMAIL PROTECTED]>
To: "Maven" <[EMAIL PROTECTED]>
Sent: Thursday, January 29, 2004 9:56 PM
Subject: ant:parallel is working differently in Maven than in Ant


> I'm running the exact same set of tags with Ant and Maven, but I get
> different behavior. The Maven I'm using was built from CVS on
> 11/25/03. I put this:
> 
>     <parallel>
>       <sequential>
>         <echo>Thread one sleeping for three seconds</echo>
>         <sleep seconds="3"/>
>         <echo>Thread one done sleeping</echo>
>       </sequential>
>       <sequential>
>         <echo>Thread two sleeping for one second</echo>
>         <sleep seconds="1"/>
>         <echo>Thread two done sleeping</echo>
>       </sequential>
>     </parallel>
>     <echo>All threads complete</echo>
> 
> in both a build.xml and maven.xml. Running ant on the target gives:
> 
> anttest:
>      [echo] Thread one sleeping for three seconds
>      [echo] Thread two sleeping for one second
>      [echo] Thread two done sleeping
>      [echo] Thread one done sleeping
>      [echo] All threads complete
> 
> as I expected. Running Maven on the goal gives:
> 
> anttest:
>     [echo] Thread one sleeping for three seconds
>     [echo] Thread one done sleeping
>     [echo] Thread two sleeping for one second
>     [echo] Thread two done sleeping
>     [echo] All threads complete
> 
> The two tasks run sequentially, even though they should run in the
> parallel. Running maven -X just gives a couple messages about adding
> classpath references and verbose output on the sleep tag. Adding the
> "ant" namespace to all the Ant tags results in the same behavior.
> 
> Has anyone else seen this? Is there something else I should or should
> not be doing to get the tasks to run in parallel in Maven?
> 
>     Jeff
> 
> -- 
> mailto:[EMAIL PROTECTED]
> 
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to