You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2002/05/13 11:45:41 UTC
DO NOT REPLY [Bug 9024] New: -
replaceregexp task doesn't work correctly with nested filesets
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9024>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9024
replaceregexp task doesn't work correctly with nested filesets
Summary: replaceregexp task doesn't work correctly with nested
filesets
Product: Ant
Version: 1.5Beta1
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: Optional Tasks
AssignedTo: ant-dev@jakarta.apache.org
ReportedBy: Ralph.Henze@spb.de
replaceregexp task doesn't work correctly when using nested fileset tags.
(1) There's a simple bug in line 408 of ReplaceRegExp.java:
'file.getAbsolutePath()' should be replaced by 'f.getAbsolutePath()'
in order to not exit with a NullPointerException.
(2) A more serious bug occurs when using nested directories in the 'dir'
attribute of the nested fileset tag: The set of files that match the
'includes' attribute is build correctly, but the absolute path names of
the files given by the call to 'ds.getIncludedFiles()' are not complete,
so error messages are thrown out:
'The following file is missing: foo\bar\blah'
It seems that nested directories given in the dir-attribute of the fileset
tag are omitted while building the complete absolute path of the file.
Perhaps it's a bug in the DirectoryScanner class (?!?)
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>