ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 9024] New: - replaceregexp task doesn't work correctly with nested filesets
Date Mon, 13 May 2002 09:45:41 GMT
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:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message