| <whichresource > (Diff included, committers!) | <whichresource > (Diff included, committers!) 2004-01-11 - By Jack J. Woehr
koji_sekiguchi@(protected) wrote:
> How do you write build.xml to get the URL for > org.apache.tools.ant.Main.class? Does it actually work?
You're right! This diff seems to fix the bug:
Index: src/main/org/apache/tools/ant/taskdefs/WhichResource.java =================================================================== RCS file: /home/cvspublic/ant/src/main/org/apache/tools/ant/taskdefs /WhichResource.java,v retrieving revision 1.6 diff -c -r1.6 WhichResource.java *** src/main/org/apache/tools/ant/taskdefs/WhichResource.java 12 Dec 2003 19 :32:58 -0000 1.6 --- src/main/org/apache/tools/ant/taskdefs/WhichResource.java 11 Jan 2004 17 :53:11 -0000 *************** *** 169,175 **** if (classname != null) { //convert a class name into a resource classname = classname.replace('.', '/'); ! resource = "/" + classname + ".class"; } else { if (!resource.startsWith("/")) { resource = "/" + resource; --- 169,175 ---- if (classname != null) { //convert a class name into a resource classname = classname.replace('.', '/'); ! resource = /* "/" + */ classname + ".class"; } else { if (!resource.startsWith("/")) { resource = "/" + resource;
-- Jack J. Woehr # We have gone from the horse and buggy Senior Consultant # to the moon rocket in one lifetime, but Purematrix, Inc. # there has not been a corresponding moral www.purematrix.com # growth in mankind. - Dwight D. Eisenhower
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |