ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48734] New: Attrib performance is very slow
Date Fri, 12 Feb 2010 12:56:22 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48734

           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
        AssignedTo: notifications@ant.apache.org
        ReportedBy: mica@epee.dk


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
target).

Example target:

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

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

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

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message