|
Ant example source code file (basename.xml)
The basename.xml source code<?xml version="1.0"?> <project name="xxx-test" basedir="." default="test1"> <target name="test1"> <basename/> </target> <target name="test2"> <basename property="propname"/> </target> <target name="test3"> <basename file="filename"/> </target> <target name="test4"> <basename property="file.w.suf" file="${user.dir}/foo.txt"/> </target> <target name="test5"> <basename property="file.wo.suf" file="foo.txt" suffix="txt"/> </target> <target name="testMultipleDots"> <basename property="file.wo.suf" file="foo.bar.txt" suffix="txt"/> </target> <target name="testNoDots"> <basename property="file.wo.suf" file="foo.bartxt" suffix="txt"/> </target> <target name="testValueEqualsSuffixWithDot"> <basename property="file.wo.suf" file=".txt" suffix=".txt"/> </target> <target name="testValueEqualsSuffixWithoutDot"> <basename property="file.wo.suf" file=".txt" suffix="txt"/> </target> </project> Other Ant examples (source code examples)Here is a short list of links related to this Ant basename.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.