ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46842] New: Support Classpath Wildcards
Date Thu, 12 Mar 2009 12:12:51 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=46842

           Summary: Support Classpath Wildcards
           Product: Ant
           Version: 1.7.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: mbm@ptc.com


Ant doesn't support Java 1.6's classpath wildcards (eg foo/*) for forked
<java>.
   http://java.sun.com/javase/6/docs/technotes/tools/windows/classpath.html

It happens in the creation of the task's path, in Path.addExisting().

If I change the first line of code in this block:
  
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/types/Path.java?view=markup

            if (f.exists()){
                setLocation(f);
            } else {
                log("dropping " + f + " from path as it doesn't exist",
                    Project.MSG_VERBOSE);
            }

to this:
            if (f.exists() || (f.getParentFile().exists() &&
"*".equals(f.getName()))) {

I get the behavior I desire.  Maybe this change would create problems for other
usage scenarios, but it would seem unlikely.  If so, maybe an attribute to
enable support for java classpath wildcards could be added.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message