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=18882>.
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=18882

<zip> task ignores the file .cvsignore

           Summary: <zip> task ignores the file .cvsignore
           Product: Ant
           Version: 1.5.3
          Platform: Other
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The <zip> task seems to refuse to include the file .cvsignore in a zip file.  
Given the following files and directory structure:

  build.xml
  src/
    hello.txt
    .cvsignore
    .classpath

Where build.xml contains the following Ant script:

  <?xml version="1.0"?>
  <project name="TestCase" default="build" basedir=".">
    <target name="build">
      <delete file="src.zip"/>
      <zip zipfile="src.zip" basedir="src"/>
    </target>
  </project>


Running Ant yeilds the following:

  C:\ant\simon>ant
  Buildfile: build.xml

  build:
        [zip] Building zip: C:\ant\simon\src.zip

  BUILD SUCCESSFUL
  Total time: 1 second


Unfortunately the generated src.zip file DOES NOT CONTAIN the file .cvsignore.  
Both hello.txt and .classpath are included.

Reply via email to