You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/12/06 10:37:22 UTC

[jira] Commented: (MAVEN-1525) ant tasknames and ant output doesninside

The following comment has been added to this issue:

     Author: Matthias Kerkhoff
    Created: Mon, 6 Dec 2004 4:35 AM
       Body:
Please rename this issue - I hit return by mistake while changing the name to 'ant tasknames and ant output gets out of sync' or something similar. 

I think that the problem is related to JellyBuildListener. Eventually, there is an implicit assumption that the current output / build event is always produced from the last ant task being started? Just guessing...
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/browse/MAVEN-1525?page=comments#action_27530

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MAVEN-1525

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-1525
    Summary: ant tasknames and ant output doesninside <threads:>
       Type: Bug

     Status: Unassigned
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             jelly/ant integration
   Versions:
             1.0.1

   Assignee: 
   Reporter: Matthias Kerkhoff

    Created: Mon, 6 Dec 2004 4:31 AM
    Updated: Mon, 6 Dec 2004 4:35 AM
Environment: Windows

Description:
The following jelly script prints incorrect output:

<threads:group var="threads">

            <threads:thread name="t1" newContext="true">
                <j:while test="${true}" >
                    <ant:exec taskname="task-3 ###" executable="cmd.exe" ><arg line="/C echo task-3 #"/></ant:exec>
                </j:while>                    
            </threads:thread>

            <threads:thread name="t2" newContext="true">
                <j:while test="${true}" >
                    <ant:exec taskname="task-2 ##" executable="cmd.exe" ><arg line="/C echo task-2 ##"/></ant:exec>
                </j:while>                    
            </threads:thread>

            <threads:thread name="t3" newContext="true">
                <j:while test="${true}" >
                    <ant:exec taskname="task-1 #" executable="cmd.exe" ><arg line="/C echo task-1 ###"/></ant:exec>
                </j:while>                    
            </threads:thread>

        </threads:group>

The output printed looks like this

    [task-2 ##] task-3 #
    [task-2 ##] task-1 ###
    [task-2 ##] task-2 ##
    [task-2 ##] task-1 ###
    [task-1 #] task-2 ##
    [task-2 ##] task-3 #
    [task-3 ###] task-2 ##
    [task-3 ###] task-1 ###
    [task-1 #] task-3 #
    [task-3 ###] task-2 ##
    [task-2 ##] task-1 ###
    [task-1 #] task-3 #
    [task-1 #] task-2 ##
    [task-2 ##] task-1 ###
    [task-2 ##] task-3 #

The correct version would repeat each task name twice per line. As a visual clue I also added the #'s to the output. There should always be four '#' per line, so that the output for each task ends in the same column.



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org