<?xml version="1.0"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
See the License for the specific language governing permissions and | |
limitations under the License. | |
--> | |
<project name="antclassloader-test" basedir="."> | |
<property name="tmp.dir" location="tmp space"/> | |
<!-- ant for germans --> | |
<property name="tmp.dir.nonascii" value="ã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> |