[EMAIL 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to