Re: How can I check if file exists in gz compress file?

2011-05-06 Thread Matt Benson
On Fri, May 6, 2011 at 11:09 AM, Ben Tu wrote: > Hi, > > Is there a task in Ant that I can check if the file exists in myfile.tar.gz > file without extracting it? > > With the tar being gzipped, I can't think of anything in core Ant that will just do this. If you want to gunzip it first, you can

How can I check if file exists in gz compress file?

2011-05-06 Thread Ben Tu
Hi, Is there a task in Ant that I can check if the file exists in myfile.tar.gz file without extracting it? Here is the content of myfile.tar.gz after extracted. Dir1/ fileA fileB dir2/ fileC I want to check if fileC exists in myfile.tar.gz without extracting myfile.tar.gz. is