https://issues.apache.org/bugzilla/show_bug.cgi?id=54128

--- Comment #18 from Antoine Levy-Lambert <[email protected]> ---
I created this build file to test :
<project name="doit">
<echo>ant.version=${ant.version}</echo>
 <script language="javascript"> <![CDATA[

      for (i=1; i<=1000; i++) {
        exec = doit.createTask("exec");
        exec.setExecutable("attrib");
        exec.createArg().setValue("-r");
        exec.createArg().setValue("doit.xml");
        exec.perform();
      }

    ]]> </script>

</project>

---
I ran the build file on Windows 7 with JDK 1.7 using this script :
export ANT_HOME=c:/opt/apache-ant-1.7.1
ant -f doit.xml
export ANT_HOME=c:/opt/apache-ant-1.9.2
ant -f doit.xml
export ANT_HOME=c:/opt/apache-ant-1.9.3
ant -f doit.xml
----
here is the output :

$ ./doit.sh
Buildfile: doit.xml
     [echo] ant.version=Apache Ant version 1.7.1 compiled on June 27 2008

BUILD SUCCESSFUL
Total time: 8 minutes 6 seconds
Buildfile: C:\dev\54128\doit.xml
     [echo] ant.version=Apache Ant(TM) version 1.9.2 compiled on July 8 2013

BUILD SUCCESSFUL
Total time: 14 minutes 50 seconds
Buildfile: C:\dev\54128\doit.xml
     [echo] ant.version=Apache Ant(TM) version 1.9.3 compiled on December 23
2013

BUILD SUCCESSFUL
Total time: 8 minutes 5 seconds

The test build file as you can see runs 1000 times attrib on a single file.
The performance of Ant 1.7.1 and Ant 1.9.3 in this test are the same, Ant 1.9.2
is much slower.

Is there something specific to the command that you are running which is such
that it is slow under Ant 1.9.3 ? Did you set ANT_HOME to point to the
installation of Ant 1.9.3 when you tested it ?

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

Reply via email to