|
Ant example source code file (uptodate.xml)
The uptodate.xml source code<project basedir="."> <target name="setUp"> <touch file="source"/> <sleep seconds="3"/> <touch file="target"/> </target> <target name="tearDown"> <delete file="source"/> <delete file="target"/> </target> <target name="testFilesetUpToDate" depends="setUp"> <uptodate property="foo" targetfile="target"> <srcfiles dir="." includes="source"/> </uptodate> </target> <target name="testFilesetOutOfDate" depends="setUp"> <uptodate property="foo" targetfile="source"> <srcfiles dir="." includes="target"/> </uptodate> </target> <target name="testRCUpToDate" depends="setUp"> <uptodate property="foo" targetfile="target"> <srcresources> <fileset dir="." includes="source"/> </srcresources> </uptodate> </target> <target name="testRCOutOfDate" depends="setUp"> <uptodate property="foo" targetfile="source"> <srcresources> <fileset dir="." includes="target"/> </srcresources> </uptodate> </target> </project> Other Ant examples (source code examples)Here is a short list of links related to this Ant uptodate.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.