You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/08/14 17:52:12 UTC

DO NOT REPLY [Bug 22428] New: - PATCH - option to run tasks in a loop

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22428>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22428

PATCH - option to run tasks in a loop

           Summary: PATCH - option to run tasks in a loop
           Product: Ant
           Version: 1.5.4
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: t5jtjj502@sneakemail.com


Hi,

I'm submitting a quick patch that enable ant to run in a loop mode (through the
parameter -loop). 

In this mode, once the tasks are finished, ant will wait for the user to press
Enter to run the tasks again or q to quit.

This is pretty useful in situations where a task must be performed many times in
a short period of time - like redeploying modified JSP pages to a web container.
Usually the task itself is almost instantaneous, but it takes about 5-6 seconds
using the regular ant - this overhead is caused mostly by the JVM invocation.
With this patch, the new tasks are executed pretty fast, asshown below:



ant -loop copy_web_oc4j
Buildfile: build.xml

copy_web_oc4j:
     [copy] Copying 1 file to /home/felipeal/eInquiry/build/deploy/oc4j/CSNAPP

BUILD SUCCESSFUL
Total time: 2 seconds // first evocation, took 2 seconds

Press Enter to continue or q + Enter to quit


copy_web_oc4j:
     [copy] Copying 1 file to /home/felipeal/eInquiry/build/deploy/oc4j/CSNAPP

BUILD SUCCESSFUL
Total time: 0 seconds // sub-sequent iterations: 0 seconds

Press Enter to continue or q + Enter to quit


I'm submitting 2 patches: 1 for ant 1.5.4 and other for the main branch, but I
couldn't test the 2nd one - my guess is that the main build is broken at the
moment...

Felipe

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