how to exclude mutliple files

2010-07-15 Thread Andy2008
I'm looping thru a directory and it has many sub-directories underneath. I want to exclude some sub-directories. Here's my code it works fine. Now I have another properties file that contains directories I want to exclude also. For business reason, I can't combine them into one file. I tri

Re: DirSet question

2010-06-29 Thread Andy2008
Thanks. The includesfile works perfectly :) Michael Ludwig-6 wrote: > > Andy2008 schrieb am 29.06.2010 um 12:56 (-0700): >> >> I want to include a number of directories. Below is my code. In >> this example, I only want to include Project1

DirSet question

2010-06-29 Thread Andy2008
I want to include a number of directories. Below is my code. In this example, I only want to include Project1 and Project2 directories Is there a way to put Project1 and Project2 values in one include statement instead of having 2 include statements? I will have a lot of directories to

Re: How to retrieve directory name

2010-06-25 Thread Andy2008
Fri, Jun 25, 2010 at 6:29 PM, Andy2008 wrote: >> >> I'm looping thru a directory that contains a lot of sub directories.  I >> want >> to get the name of each sub directory.  Below is my code >> >> >>   >>       >>        

How to retrieve directory name

2010-06-25 Thread Andy2008
I'm looping thru a directory that contains a lot of sub directories. I want to get the name of each sub directory. Below is my code @{soa.project.dir} Right now it outputs the whole path such as "c:\abc\def" which is good since I

Re: propertyregex question

2010-06-23 Thread Andy2008
Thanks so much. It works. You are the man :) Michael Ludwig-6 wrote: > > Andy2008 schrieb am 22.06.2010 um 17:17 (-0700): >> >> Here's my input >> >> abc/long/distance >> >> I want to get abc back. Here's my code >> &

propertyregex question

2010-06-22 Thread Andy2008
Here's my input abc/long/distance I want to get abc back. Here's my code but I got back the whole string (abc/long/distance) Do you have any ideas? Thanks -- View this message in context: http://old.nabble.com/propertyregex-question-tp28966275p28966275.html Sent from the Ant - Users mail

Best way to have a list of values in properties file

2010-04-16 Thread Andy2008
I have a list of values that I need to loop thru and right now I have them as a comma separated list as below in my properties file apps=app1, app2, app3, app4 Name of the apps can be very long so I'm wondering if I can do something like below for readability purpose apps=app1 apps=app2 apps=ap

Re: where to download the latest ant-contrib-1.0b3.jar

2010-04-16 Thread Andy2008
Thank you all for your replies. I changed to using the antlib.xml and it's working now. You guys are awesome Thanks -- View this message in context: http://old.nabble.com/where-to-download-the-latest-ant-contrib-1.0b3.jar-tp28261202p28269551.html Sent from the Ant - Users mailing list archiv

Re: PropertyRegex help

2010-04-16 Thread Andy2008
first > pair > of parentheses, it's "\1". > > Here's a document I created to explain regular expressions: < > http://dl.dropbox.com/u/433257/Regular_Expressions.doc> > > On Thu, Apr 15, 2010 at 8:18 PM, Andy2008 wrote: > >> >&

PropertyRegex help

2010-04-15 Thread Andy2008
Here's my input dev-abc.com:8001 I want abc.com:8001 back. Below is my propertyregex but ${url} returns \1 Do you have any ideas? -- View this message in context: http://old.nabble.com/PropertyRegex-help-tp28261946p28261946.html Sent from the Ant - Users mailing list archive at Nabble.com

Re: where to download the latest ant-contrib-1.0b3.jar

2010-04-15 Thread Andy2008
I did download that zip file and as I mentioned in my post, the issue is there's no for loop in the antcontrib.properties. Below is what it has # Logic tasks if=net.sf.antcontrib.logic.IfTask foreach=net.sf.antcontrib.logic.ForEach throw=net.sf.antcontrib.logic.Throw trycatch=net.sf.antcontrib.l

where to download the latest ant-contrib-1.0b3.jar

2010-04-15 Thread Andy2008
I downloaded it from the below link http://sourceforge.net/projects/ant-contrib/files/ but the antcontrib.properties file does not have the for task in it. that's why i got error while trying to excute the for loop. In my script I have @{i}

Re: how to detect a file while looping thru a list of directories

2010-03-05 Thread Andy2008
I got the answer -- View this message in context: http://old.nabble.com/how-to-detect-a-file-while-looping-thru-a-list-of-directories-tp27775656p27798444.

Re: how to detect a file while looping thru a list of directories

2010-03-04 Thread Andy2008
Sorry, maybe I was not clear, in my code there are alot of directories under c:\temp directory such as c:\temp\dir1 c:\temp\dir2\test.xml c:\temp\dir3 in this example, only dir2 has the test.xml in it so I only want to call the target ABC for dir2 and skip the other

how to detect a file while looping thru a list of directories

2010-03-03 Thread Andy2008
I want to loop thru a list of directories and only call a target called "ABC" if a directory contains a "test.xml" file. below is my initial code Do you have any ideas? Thanks -- View this message in context: http://old.nabble.com/how-to-detect-a-file-whi