<?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>
