|
Ant example source code file (filter.xml)
The filter.xml source code<?xml version="1.0"?> <project name="filter-test" basedir="." default="test1"> <target name="test1"> <filter/> </target> <target name="test2"> <filter token=""/> </target> <target name="test3"> <filter value=""/> </target> <target name="test4"> <filter token="" value=""/> </target> <target name="test5"> <filter token="year" value="2000" /> <copy file="filter1.txt" tofile="filtered.tmp" filtering="yes" overwrite="yes" /> </target> <target name="test6"> <filter token="year" value="2000" /> <copy todir="./taskdefs.tmp" filtering="yes" overwrite="yes"> <fileset dir="." includes="filter1.txt" /> </copy> </target> <target name="test7"> <filter token="ROOT" value="root" /> <copy file="filter2.txt" tofile="filtered.tmp" filtering="yes" overwrite="yes" /> </target> <target name="test8"> <filter token="ROOT" value="root" /> <copy todir="./taskdefs.tmp" filtering="yes" overwrite="yes"> <fileset dir="." includes="filter2.txt"/> </copy> </target> <target name="test9"> <filter filtersfile="filterdefs.properties" /> <copy todir="./taskdefs.tmp" filtering="yes" overwrite="yes"> <fileset dir="." includes="filter3.txt"/> </copy> </target> <target name="cleanup"> <delete dir="taskdefs.tmp" /> </target> </project> Other Ant examples (source code examples)Here is a short list of links related to this Ant filter.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.