ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46842] New: Support Classpath Wildcards
Date Thu, 12 Mar 2009 12:12:51 GMT

           Summary: Support Classpath Wildcards
           Product: Ant
           Version: 1.7.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Core

Ant doesn't support Java 1.6's classpath wildcards (eg foo/*) for forked

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

If I change the first line of code in this block:

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

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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message