Java Tutorial/Ant/Mapper — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Версия 20:44, 31 мая 2010
Use mapper to map a file
<source lang="java">
<?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></source>