Felipe Leme wrote, On 16/08/2003 5.01:
Hello all,...
The initial idea would be to add a command line parameter (-loop) to ant, so it can run in loop mode....
With this patch, the new tasks are executed really fast...
I improved the patch a little bit: now the Main class has 2 new attributes, loopMode and loopHandler, which could be set by the IDEs. LoopHandler is a new interface, whose default implementation uses System.in.read()....
So, what do you guys think of the patch? I think it would be really useful, and easy to implement (of course, if I didn't think so I wouldn't suggest it :-). If it is accepted, I could offer more help documenting and testing it (personally and with the participation of folks at my company and JUG).
I'm not an Ant committer, but a heavy Ant user, and I can say that I really like it :-)
It's months that I wanted this but really never got round doing it, and I'm happy that someone else has done it.
I would add a couple of suggestions if you don't mind, as I would basically keep -loop as now but would be thrilled to se other features very similar to it:
1 - it would really be nifty if there was also an -interactive mode, where a special LoopHandler is able to read also a new target invocation
2 - also having a LoopHandler to accept the tasks to run via socket (it can be easily implemented when 1 is done)
So when 1 is done, it would be:
ant -loop targetname Buildfile: build.xml
targetname: [...] ...
BUILD SUCCESSFUL Total time: 2 seconds // first evocation, took 2 seconds
Press Enter to continue q + Enter to quit targetnames + Enter to change invocation >target3 target4 (Enter)
Buildfile: build.xml
target3 : [...] ... target4 : [...] ...
BUILD SUCCESSFUL Total time: 3 seconds // first evocation, took 3 seconds
Press Enter to continue q + Enter to quit targetnames + Enter to change invocation >(Enter)
Buildfile: build.xml
target3 : [...] ... target4 : [...] ...
BUILD SUCCESSFUL Total time: 1 seconds // first evocation, took 3 seconds
Press Enter to continue q + Enter to quit targetnames + Enter to change invocation >q(Enter)
$>_
PS: here is the enhancement's URL:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22428
-- Nicola Ken Barozzi [EMAIL PROTECTED] - verba volant, scripta manent - (discussions get forgotten, just code remains) ---------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]