Browse Source

solve problem refering jars specfied by Class-Path attribute in manifest of a ant task jar file, when this ant task jar file is located in a directory with space. Bugzilla Report 37085.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@327058 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 19 years ago
parent
commit
d6bf14f707
1 changed files with 26 additions and 0 deletions
  1. +26
    -0
      src/etc/testcases/core/antclassloader.xml

+ 26
- 0
src/etc/testcases/core/antclassloader.xml View File

@@ -0,0 +1,26 @@
<project name="antclassloader-test" basedir=".">
<property name="tmp.dir" location="tmp space"/>
<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"/>
<target name="setup">
<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="cleanup">
<delete dir="${tmp.dir}" quiet="true"/>
</target>
</project>

Loading…
Cancel
Save