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: [email protected]
ReportedBy: [email protected]
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.