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 18637] - defaultexcludes not works with zip,tar,jar tasks or bag with CVS directories
Date Thu, 03 Apr 2003 10:01:48 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=18637>.
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=18637

defaultexcludes not works with zip,tar,jar tasks or bag with CVS directories





------- Additional Comments From serkos@inbox.lv  2003-04-03 10:01 -------
Directory for example ant CVS snapshot:
...
build.xml
check.xml
CVS
docs
docs.xml
...
ant task
    <zip destfile="ant.zip" basedir="ant" defaultexcludes="false"/>
resulting archive does not contain CVS directory !!!

posible fix in class org.apache.tools.ant.taskdefs.Zip
in function executeMain()
        if (baseDir != null) {
            FileSet fs = (FileSet) getImplicitFileSet().clone();
            fs.setDefaultexcludes(useDefaultExcludes);  //Add this string
            fs.setDir(baseDir);
            vfss.addElement(fs);
        }
This is solution only for zip task the same problem exists for tar, jar tasks
(and may be others)

Mime
View raw message