Ant 1.8.0 low performance

The new Ant 1.8.0 (February 1 release) introduces some interesting features, so I tried build / deployment scripts with the new Ant.

I was surprised that the runtime in some cases will be 10-30 times slower! Below is a simple example with an Exec task, although I also got problems working with other types of tasks.

<target name="create_backup_impl" if="db.make_backup" >
    <echo message="Backup is starting.." />
    <exec executable="${db.dump_executable}"    
            output="${db.backup_file}"
            failonerror="true">
        <arg value="-h${db.host}" />
        <arg value="-u${db.userid}" />
        <arg value="-p${db.password}" /> 
        <arg value="${db.backup_options}" /> 
        <arg value="${db.name}" />      
    </exec>
    <echo message="Backup completed!" />
</target>

It is designed to back up the database (backup size ~ 100 MB). Ant 1.7.1 works for about 30 s, Ant 1.8.0 - 15 min. I tried several times, the effect is stable. CPU utilization is very low for Ant 1.8 and around 50% for the old one. Looks like a problem with process priority or slow I / O. Any ideas?

+5
2

<apply executable="...">
   ...
</apply> 

, 9- ANT 1.8.0, : https://issues.apache.org/bugzilla/show_bug.cgi?id=5003 (. № 29).

ANT 1.8.1, , ANT 1.7.1: https://issues.apache.org/bugzilla/show_bug.cgi?id=48734 (. № 2).

+2

All Articles