ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r327058 - /ant/core/trunk/src/etc/testcases/core/antclassloader.xml
Date Fri, 21 Oct 2005 00:55:45 GMT
Author: antoine
Date: Thu Oct 20 17:55:41 2005
New Revision: 327058

URL: http://svn.apache.org/viewcvs?rev=327058&view=rev
Log:
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.

Added:
    ant/core/trunk/src/etc/testcases/core/antclassloader.xml

Added: ant/core/trunk/src/etc/testcases/core/antclassloader.xml
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/etc/testcases/core/antclassloader.xml?rev=327058&view=auto
==============================================================================
--- ant/core/trunk/src/etc/testcases/core/antclassloader.xml (added)
+++ ant/core/trunk/src/etc/testcases/core/antclassloader.xml Thu Oct 20 17:55:41 2005
@@ -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>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message