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 36104] New: - Exclude doesn't appear to be working on Tar task
Date Tue, 09 Aug 2005 16:38:43 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36104>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36104

           Summary: Exclude doesn't appear to be working on Tar task
           Product: Ant
           Version: 1.6.5
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: thom@nowhereatall.com


I want to create two distributions. The only difference between these two is the
two different jar files. Here are my tasks:

   <!-- Build the first tar file -->
   <tar tarfile="${tarfile}">
       <tarfileset dir="${distrib}" prefix="rex">
           <exclude name="${distrib}/*.cgi"/>
           <exclude name="${distrib}/*.pl"/>
           <exclude name="${dist-jar2}"/>
       </tarfileset>
       <tarfileset dir="${distrib}" mode="755" prefix="rex">
           <include name="${distrib}/*.cgi"/>
           <include name="${distrib}/*.pl"/>
       </tarfileset>
   </tar>
   <gzip zipfile="${tarfile}.gz" src="${tarfile}"/>
   <delete file="${tarfile}"/>

   <!-- Build the second tar file -->
   <tar tarfile="${tarfile2}">
       <tarfileset dir="${distrib}" prefix="rex">
           <exclude name="${distrib}/*.cgi"/>
           <exclude name="${distrib}/*.pl"/>
           <exclude name="${dist-jar}"/>
       </tarfileset>
       <tarfileset dir="${distrib}" mode="755" prefix="rex">
           <include name="${distrib}/*.cgi"/>
           <include name="${distrib}/*.pl"/>
       </tarfileset>
   </tar>
   <gzip zipfile="${tarfile2}.gz" src="${tarfile2}"/>
   <delete file="${tarfile2}"/>

Where:
 ...
 <property name="distrib" location="./distrib"/>
 <property name="dist-jar" location="${distrib}/rex.jar"/>
 <property name="dist-jar2" location="${distrib}/rexml.jar"/>
 ...
 <property name="tarfile" location="${src}/rex.tar"/>
 <property name="tarfile2" location="${src}/rexml.tar"/>

When I run with debug, I get:

Tar$TarFileSet: Setup scanner in dir /home/ThomHehl/src/Javacode/rex/distrib
with patternSet{ includes: [] excludes:
[/home/ThomHehl/src/Javacode/rex/distrib/*.cgi,
/home/ThomHehl/src/Javacode/rex/distrib/*.pl,
/home/ThomHehl/src/Javacode/rex/distrib/rexml.jar] }
   ...
     [tar] rexml.jar added as /home/ThomHehl/src/Javacode/rex/rex.tar doesn't exist.

Argghhh!!!

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message