You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Jefferson K. French" <je...@frenches.org> on 2004/01/30 15:33:10 UTC
[jelly] Ant's parallel task works differently when invoked via Jelly
When I invoke the following via Ant:
<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>
I get the output I expect:
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
but when I invoke the same in a maven.xml goal, I get:
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
Where the two groups run sequentially, instead of in parallel. In case
you're wondering if maybe the output is just being buffered
differently, in my real code I exec a message-feeder within the
sequential tags that takes 30-40 minutes to run, so the sequential
nature is much more obvious. I just used the sleep and echos to
demonstrate what I'm seeing.
I didn't see anything about this in Jira. Is it a known problem, or is
there something else I need to get this to work? Thanks.
BTW, I'm using Maven built from CVS on 11/25/03, which uses
commons-jelly-tags-ant-20030625.032346.jar.
Jeff
--
mailto:jeff@frenches.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org