Rename file extensions in a directory using ant

  <target name="baktojava">
    <move todir="${dest.dir}">
      <fileset dir="${src.dir}">
      </fileset>
      <mapper type="glob" 
          from="*.bak" to="*.java"/>
    </move>
  </target>
This entry was posted in java. Bookmark the permalink.