You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Robert Leftwich <di...@ix.net.au> on 2001/05/09 03:57:46 UTC

Reusing the same instance of ant

It strikes me that it would be useful to be able to reuse the same instance 
of Ant when in the continuous cycle of code/compile/test as there is an 
overhead of starting up the jvm and parsing the build files that could be 
avoided.
What I am envisaging is at its simplest, a loop that runs Ant and then 
instead of exiting it writes to System.out "Press R to re-run or Q to 
quit". If R is pressed it re-runs Ant without reparsing the build files (or 
whatever is necessary to get the best turn around time). Is this possible 
already and I have missed it in the doco ? Has anyone else contemplated 
this variation on the usage of Ant or am I barking up the wrong tree?

TIA

Robert


Re: Reusing the same instance of ant

Posted by Diane Holt <ho...@yahoo.com>.
Search on "antshell" in the ant-dev archives for a recent discussion about
doing this sort of thing.

Diane

--- Robert Leftwich <di...@ix.net.au> wrote:
> It strikes me that it would be useful to be able to reuse the same
> instance 
> of Ant when in the continuous cycle of code/compile/test as there is an 
> overhead of starting up the jvm and parsing the build files that could
> be 
> avoided.
> What I am envisaging is at its simplest, a loop that runs Ant and then 
> instead of exiting it writes to System.out "Press R to re-run or Q to 
> quit". If R is pressed it re-runs Ant without reparsing the build files
> (or 
> whatever is necessary to get the best turn around time). Is this
> possible 
> already and I have missed it in the doco ? Has anyone else contemplated 
> this variation on the usage of Ant or am I barking up the wrong tree?
> 
> TIA
> 
> Robert
> 


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/