New Ant 1.8.0 (release Feb 1) introduces some cool features, so I tried my build/deployment scripts with new Ant.
I was surprised that execution time becomes in 10-30 times slower for some targets! Below simple example with Exec task, although I got performance problems with other task types too.
<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 a target for backuping database (backup size ~100 Mb). Ant 1.7.1 works about 30 s, Ant 1.8.0 - 15 min. I tried several times, effect is stable. Processor loading is very low for Ant 1.8, and near 50% for old one. Looks like problem with priority of process or slow IO operations. Any ideas?