source: other-projects/trunk/gs3-release-maker/apache-ant-1.6.5/src/etc/testcases/taskdefs/basename.xml@ 14627

Last change on this file since 14627 was 14627, checked in by oranfry, 17 years ago

initial import of the gs3-release-maker

File size: 977 bytes
Line 
1<?xml version="1.0"?>
2
3<project name="xxx-test" basedir="." default="test1">
4
5 <target name="test1">
6 <basename/>
7 </target>
8
9 <target name="test2">
10 <basename property="propname"/>
11 </target>
12
13 <target name="test3">
14 <basename file="filename"/>
15 </target>
16
17 <target name="test4">
18 <basename property="file.w.suf" file="${user.dir}/foo.txt"/>
19 </target>
20
21 <target name="test5">
22 <basename property="file.wo.suf" file="foo.txt" suffix="txt"/>
23 </target>
24
25 <target name="testMultipleDots">
26 <basename property="file.wo.suf" file="foo.bar.txt" suffix="txt"/>
27 </target>
28
29 <target name="testNoDots">
30 <basename property="file.wo.suf" file="foo.bartxt" suffix="txt"/>
31 </target>
32
33 <target name="testValueEqualsSuffixWithDot">
34 <basename property="file.wo.suf" file=".txt" suffix=".txt"/>
35 </target>
36
37 <target name="testValueEqualsSuffixWithoutDot">
38 <basename property="file.wo.suf" file=".txt" suffix="txt"/>
39 </target>
40
41</project>
Note: See TracBrowser for help on using the repository browser.