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

2011-05-07 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

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

2011-05-07 Thread Ben Tu
thanks Nicolas. I'll look into it. 2011/5/7 Nicolas Lalevée > I think this kind of condition will do the proper job: > > > > > > > > > > Nicolas > > Le 6 mai 2011 à 19:14, Matt Benson a écrit : > > > On

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

ant exec task trouble parsing quotes

2008-12-22 Thread Ben Tu
Hi, I am trying to run a java command using exec task in ant. I ran into the error because one of the java command argument has space between. Any idea? Please help. Thanks, Here is my ant task in build.xml file:

RE: AW: AW: token filtering

2008-11-17 Thread Ben Tu
I will have it ready for you today. Testing it -Original Message- From: Mark Salter [mailto:[EMAIL PROTECTED] Sent: Sunday, November 16, 2008 2:47 AM To: Ant Users List Subject: Re: AW: AW: token filtering Rez wrote: > That's what we really need, more examples. Some > of the current e

RE: find file in specify directory and its sub-directory

2008-10-07 Thread Ben Tu
It worked. thanks -Original Message- From: Matt Benson [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 07, 2008 11:03 AM To: Ant Users List Subject: RE: find file in specify directory and its sub-directory pathsep="${line.separator}" --- Ben Tu <[EMAIL PROTECTED]>

RE: find file in specify directory and its sub-directory

2008-10-07 Thread Ben Tu
AM To: Ant Users List Subject: Re: find file in specify directory and its sub-directory Are your sed commands trying to strip off the leading ./ , then escape dollar signs found? If so, the second probably wouldn't be relevant: Something like that? HTH, Matt --- Ben Tu <[EMAIL P

RE: find file in specify directory and its sub-directory

2008-10-07 Thread Ben Tu
-directory You might check the resourcecount target On Tue, 7 Oct 2008, Ben Tu wrote: > Hi, > I would like to accomplish the similar task below in ant script. > Does anyone know how? > > find . -name '*.class' | sed -e 's/^.\///g' -e '

find file in specify directory and its sub-directory

2008-10-07 Thread Ben Tu
Hi, I would like to accomplish the similar task below in ant script. Does anyone know how? find . -name '*.class' | sed -e 's/^.\///g' -e 's/\$/\\\$/g' | sort > log.txt thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi