Java Tutorial/Ant/Mapper

Материал из Java эксперт
Перейти к: навигация, поиск

Use mapper to map a file

<?xml version="1.0"?>
<project name="Apache Ant Properties Project" basedir=".">
  
  <fileset dir="." id="uptodate.id">
    <include name="src/jstl/One.java"/>
  </fileset>
  <condition property="uptodate">
    <uptodate>
      <srcfiles refid="uptodate.id"/>
      <mapper type="merge" to="./One.java"/>
    </uptodate>
  </condition>
  <target name="compile" if="uptodate">
    <echo message="File changed: ${uptodate}"/>
  </target>

</project>