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 24868] New: - Ant takes too long to load
Date Thu, 20 Nov 2003 17:27:09 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=24868>.
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=24868

Ant takes too long to load

           Summary: Ant takes too long to load
           Product: Ant
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: kt@webmedia.ee


About a second or 2 passes between the moment when I type "ant" on the command 
line and Ant begins building the first target.
I've taken a look into the code and found that most of this time is being spent 
in the org.apache.tools.ant.Project.init() method, more specifically - in the 
first part of it, where Ant loads and initializes the default tasks specified 
in 
/org/apache/tools/ant/taskdefs/defaults.properties

Removing some of the tasks I didn't use from that file I managed to reduce the 
time to load from 1.5 seconds to 0.2 seconds. Though probably not a serious 
achievement, such a speedup made using Ant much more comfortable. 
So I thought that it would be nice to 
either:

  a) Not initialize all the default tasks on Project.init(), but only when a 
particular task is used

or

  b) Allow the user to provide a custom "defaults.properties" file with only 
the tasks he uses in his project.

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


Mime
View raw message