Line | |
---|
1 | <?xml version="1.0"?>
|
---|
2 | <project default="cleanup" basedir=".">
|
---|
3 |
|
---|
4 | <target name="init">
|
---|
5 | <mkdir dir="result" />
|
---|
6 | </target>
|
---|
7 |
|
---|
8 | <target name="cleanup">
|
---|
9 | <delete dir="result"/>
|
---|
10 | </target>
|
---|
11 |
|
---|
12 | <target name="dynamicfilter">
|
---|
13 | <path id="test-classes">
|
---|
14 | <pathelement location="../../../../build/testcases" />
|
---|
15 | <pathelement path="${java.class.path}" />
|
---|
16 | </path>
|
---|
17 | <typedef
|
---|
18 | name="customfilter"
|
---|
19 | classname="org.apache.tools.ant.filters.DynamicFilterTest$CustomFilter">
|
---|
20 | <classpath refid="test-classes"/>
|
---|
21 | </typedef>
|
---|
22 |
|
---|
23 | <concat destfile="result/input">
|
---|
24 | hello world
|
---|
25 | </concat>
|
---|
26 |
|
---|
27 | <copy file="result/input" tofile="result/dynamicfilter">
|
---|
28 | <filterchain>
|
---|
29 | <customfilter replace="o" with="O"/>
|
---|
30 | </filterchain>
|
---|
31 | </copy>
|
---|
32 | </target>
|
---|
33 |
|
---|
34 | </project>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.