ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 48734] New: Attrib performance is very slow
Date Fri, 12 Feb 2010 12:56:22 GMT

           Summary: Attrib performance is very slow
           Product: Ant
           Version: 1.8.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optional Tasks

We have a task that syncronizes some data in our J2EE web applications. During
this taks we use the attrib task to set/remove readonly.

The performance of this has slowed dramatically between Ant 1.7.0 and 1.8.0.
Each of our web-applications have about 10 tld-files. In Ant 1.7.0 the complete
target is finished in 1-2 seconds. In Ant 1.8.0 the attrib task alone takes
about 10 seconds to complete (and slightly less than 20 seconds for the whole

Example target:

<target name="sync-webapp-tld">
    <attrib readonly="false">
        <fileset dir="${build.src}/WEB-INF">
            <include name="*.tld" />

    <echo message="Do something ..."/>

    <attrib readonly="true">
        <fileset dir="${build.src}/WEB-INF">
            <include name="*.tld" />

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message