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 5874] New: - Cannot tar from root using tarfileset
Date Tue, 15 Jan 2002 22:17:07 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=5874>.
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=5874

Cannot tar from root using tarfileset

           Summary: Cannot tar from root using tarfileset
           Product: Ant
           Version: 1.4.1
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: barbaram@fedex.com
                CC: barbaram@fedex.com


We cannot tar from root.  See code below:

<target name="tarGUI">
        <tar longfile="gnu"
             tarfile="/crs/crsGUI.tar">
          <tarfileset dir="/" mode="775">
            <include name="/opt/bea/wls6.1sp2/config/FacDomain/*" />
          </tarfileset>
        </tar>
</target>

This produces an error: "tarGUI:
      [tar] Nothing to do: /crs/crsGUI.tar is up to date."

I can modify this two different ways and get it to work, but not get the 
results I want.  I can modify as follows:

<tar longfile="gnu"
             tarfile="/crs/crsGUI.tar">
          <tarfileset dir="${facDomain}" mode="775">
            <include name="**/*" />
          </tarfileset>
</tar>

which gives me a tar file starting with everything 
in /opt/bea/wls6.1sp2/config/FacDomain since that is what ${facDomain} is set 
to.  However, we want the FULL PATH including the /opt/bea/... in the tar file 
so that it doesn't matter which directory someone is in when they untar.  In 
this scenario, the user would have to be in /opt/bea/wls6.1sp2/config/FacDomain 
to untar correctly.

The other way I can get this to run is:

<tar longfile="gnu"
         tarfile="/crs/crsGUI.tar">
      <tarfileset dir="/" mode="775">
         <include name="opt/bea/wls6.1sp2/config/FacDomain/*" />
      </tarfileset>
</tar>

But it still doesn't tar everything in the directory and the leading slash in 
front of opt is still missing.  

Can you help?

Thank you in advance,
Barbara

--
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