<target name="baktojava"> <move todir="${dest.dir}"> <fileset dir="${src.dir}"> </fileset> <mapper type="glob" from="*.bak" to="*.java"/> </move> </target>