<?xml version="1.0"?>

<project name="tar-test" basedir="." default="test1">

  <target name="test1">
    <tar/>
  </target>

  <target name="test2">
    <tar tarfile=""/>
  </target>

  <target name="test3">
    <tar basedir=""/>
  </target>

  <target name="test4">
    <touch file="test4.tar"/>
    <tar destfile="test4.tar"
         basedir="."/>
  </target>

  <target name="test5">
    <mkdir dir="test5dir"/>
    <tar destfile="test5.tar"
         basedir="."
         includes="test5dir"/>
  </target>

  <target name="test6">
    <tar destfile="blah" longfile="Foo"/>
  </target>

  <target name="test7">
    <mkdir dir="test7dir"/>
    <tar destfile="test7.tar">
      <tarfileset dir="." prefix="test7-prefix/">
        <include name="test7dir"/>
      </tarfileset>
      <tarfileset dir="." prefix="">
        <include name="test7dir"/>
      </tarfileset>
    </tar>
    <untar src="test7.tar" dest="."/>
  </target>

  <target name="test8">
    <tar destfile="test8.tar">
      <tarfileset dir="." fullpath="/test8.xml">
        <include name="tar.xml"/>
      </tarfileset>
    </tar>
    <untar src="test8.tar" dest="."/>
  </target>

  <target name="cleanup"> 
    <delete file="test4.tar"/>
    <delete file="test5.tar"/>
    <delete file="asf-logo.gif.tar"/>
    <delete dir="test5dir"/>
    <delete dir="test7dir"/>
    <delete dir="test7-prefix"/>
    <delete file="test7.tar"/>
    <delete file="test8.tar"/>
    <delete file="test8.xml"/>
  </target>

  <target name="feather">
    <tar destfile="asf-logo.gif.tar"
         basedir=".."
         includes="asf-logo.gif" />
  </target>

</project>
