you can see that : http://ant.apache.org/manual/Tasks/pack.html
best regard On Sun, May 8, 2011 at 5:31 PM, Matt Benson <gudnabr...@gmail.com> wrote: > On Sat, May 7, 2011 at 4:00 PM, Ben Tu <ben...@gmail.com> wrote: > > thanks Nicolas. I'll look into it. > > > > Of course something along the lines of what Nicolas suggests should > work. I didn't see gzipresource in the manual. :/ > > Matt > > > 2011/5/7 Nicolas Lalevée <nicolas.lale...@hibnet.org> > > > >> I think this kind of condition will do the proper job: > >> > >> <resourcecount when="greater" count="0"> > >> <tarfileset includes="my-file-i-want-to-select"> > >> <gzipresource> > >> <file file="myfile.tar.gz" /> > >> </gzipresource> > >> </tarfileset> > >> </resourcecount> > >> > >> Nicolas > >> > >> Le 6 mai 2011 à 19:14, Matt Benson a écrit : > >> > >> > On Fri, May 6, 2011 at 11:09 AM, Ben Tu <ben...@gmail.com> 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 use the > >> > <archives> resource collection. > >> > > >> > Matt > >> > > >> >> > >> >> 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 there such a task in Ant for this purpose? > >> >> > >> >> > >> >> > >> >> thanks, Ben > >> >> > >> > > >> > --------------------------------------------------------------------- > >> > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > >> > For additional commands, e-mail: user-h...@ant.apache.org > >> > > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > >> For additional commands, e-mail: user-h...@ant.apache.org > >> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > -- Alexandre Priou Analyste Concepteur Web Éditions larivière