ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <>
Subject FileSets with optional basedir and absolute paths for includes
Date Tue, 08 Mar 2005 23:45:34 GMT
Time for controversy!  There is an interesting thread
that touches on this issue.  The key issue was that
some tasks (including 3rd party ones) would break if
AFS.getDir() were to return null.  This is indeed
true.  I have implemented the subject line, and the
following tasks/types had to be touched:

M src/main/org/apache/tools/ant/taskdefs/
(made copying abs. paths imply flattening)

M src/main/org/apache/tools/ant/taskdefs/
(log message accessed dir)

(depend stuff needs a basedir for package resolution)

M src/main/org/apache/tools/ant/taskdefs/
(requires dir w/ packagesets b/c of package

M src/main/org/apache/tools/ant/taskdefs/
(easier to assume with untestables)
M src/main/org/apache/tools/ant/taskdefs/
(easier to assume with untestables)
M src/main/org/apache/tools/ant/taskdefs/
(too complex to deal with yet)
M src/main/org/apache/tools/ant/types/
(depend stuff needs a basedir for package resolution)

However, as I stated on the referenced bug entry, the
API has never AFAICT promised that getDir would return
a non-null result.  The overwhelming majority of tasks
would be unaffected by this as many tasks would simply
use the directory as the first parameter of new
File(File, String).  No harm done.  This has been an
outstanding request for a long time.  I feel that it
represents little risk; fileset's documentation can be
liberally sprinkled with warnings that errors might be
encountered using dir-less filesets with some
third-party tasks, and we can encourage third-party
providers to make sure they are compatible.  If we
scheduled this for 1.7 we could put ample warnings
into 1.6.3 that this is coming.

So what say you all?


Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message