ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 3703] - Javac needs to provide resetSrcdir() or clearSrcdir() method
Date Wed, 19 Sep 2001 17:47:14 GMT
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=3703>.
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=3703

Javac needs to provide resetSrcdir() or clearSrcdir() method





------- Additional Comments From bmoriarty@polexis.com  2001-09-19 10:47 -------
To give some background how I'm using this: I wrote a specialized Task called 
JavacModuleTask for a project I'm on.  It extends Javac, to accept 
a "modulelist" FileSet from the build.xml.  Each module in the list is 
basically a source directory.  The JavacModuleTask.execute() method goes 
through each module and gets some info on it.  It then sets the Srcdir to the 
next module directory and runs super.execute().  This won't work as the API is 
now because the "Path src" attribute can't be reset so it keeps growing, and 
the project is so big the system eventually runs out of resources if I try to 
compile all my source directories at once.

For now I ended up modifying org.apache.tools.ant.taskdefs.Javac so that 
the "Path src" attribute was protected instead of private.  I then wrote 
a "resetSrcdir()" method in my subclass that simply set src to null.  The 
resetSrcdir() listed above is probably a better implementation in most cases.

Thanks for looking at this!  
-Brian

Mime
View raw message