summaryrefslogtreecommitdiff
path: root/src/etc
diff options
context:
space:
mode:
authorStefan Bodewig <bodewig@apache.org>2004-01-12 10:15:55 +0000
committerStefan Bodewig <bodewig@apache.org>2004-01-12 10:15:55 +0000
commit73d92708f6b3752bff36a4d425f57ae84e5be0a6 (patch)
tree0e6a0b4904c0412eb4da455e968856441bc72f15 /src/etc
parent07e9f9859fe3e73d8edde727250d94e51c0d0e13 (diff)
downloadant-73d92708f6b3752bff36a4d425f57ae84e5be0a6.tar.gz
A leading slash in a resource name is only required for
Class.getResource*, not the corresponding ClassLoader methods. Adding the slash makes the task completely useless. Reported by: <koji underscore sekiguchi at excite dot co dot jp>, Jack J. Woehr <jax at purematrix dot com> git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@275895 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/testcases/taskdefs/whichresource.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/etc/testcases/taskdefs/whichresource.xml b/src/etc/testcases/taskdefs/whichresource.xml
index eed770b88..b2094bdcb 100644
--- a/src/etc/testcases/taskdefs/whichresource.xml
+++ b/src/etc/testcases/taskdefs/whichresource.xml
@@ -12,4 +12,9 @@
<whichresource resource="org/apache/tools/ant/taskdefs/defaults.properties"
property="defaults"/>
</target>
+
+ <target name="testResourcenameWithLeadingSlash">
+ <whichresource resource="/org/apache/tools/ant/taskdefs/defaults.properties"
+ property="defaults"/>
+ </target>
</project> \ No newline at end of file