<project name="antclassloader-test" basedir=".">

    <property name="tmp.dir" location="tmp space"/>
    <!-- ant for germans -->
    <property name="tmp.dir.nonascii" value="&#0227;nt"/>
    <property name="ext.dir.relative" value="ext"/>
    <property name="main.jar" location="${tmp.dir}/main.jar"/>
    <property name="ext.jar.relative" value="${ext.dir.relative}/ext.jar"/>
    <property name="ext.jar" location="${tmp.dir}/${ext.jar.relative}"/>
    <property name="build.sysclasspath" value="first"/>
    <property name="main.jar.nonascii" location="${tmp.dir.nonascii}/main.jar"/>
    <property name="ext.jar.nonascii" location="${tmp.dir.nonascii}/${ext.jar.relative}"/>
    <target name="setup" depends="setup.withspace,setup.nonascii"/>

    <target name="setup.withspace">
        <mkdir dir="${tmp.dir}/${ext.dir.relative}"/>
        <jar destfile="${main.jar}" whenempty="create">
          <manifest>
            <attribute name="Class-Path" value="${ext.jar.relative}"/>
          </manifest>
        </jar>
        <jar destfile="${ext.jar}"/>
    </target>
    <target name="setup.nonascii">
      <mkdir dir="${tmp.dir.nonascii}/${ext.dir.relative}"/>
      <jar destfile="${main.jar.nonascii}" whenempty="create">
        <manifest>
          <attribute name="Class-Path" value="${ext.jar.relative}"/>
        </manifest>
      </jar>
      <jar destfile="${ext.jar.nonascii}"/>

    </target>

    <target name="cleanup">
        <delete dir="${tmp.dir}" quiet="true"/>
        <delete dir="${tmp.dir.nonascii}" quiet="true"/>
    </target>


</project>
