AW: scriptcondition

2009-10-29 Thread Jan.Materne
You cant. JavaTasks vs. JavaConditions vs. -- But you could write the condition directly: JavaTasks vs.

AW: Help With Condition Task

2009-10-29 Thread Jan.Materne
An idea is not to reference the files instead of "including" them: file ./includes.qa: ---8-<---8-<---8-<---8-<---8-<---8-<---8-<---8-< file1.qa file2.qa file3.qa ---8-<---8-<---8-<---8-<---8-<---8-<---8-<---8-< file ./includes.stag

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Stefan Bodewig
On 2009-10-29, cvsusr wrote: > I need to check for existence of files with some extension say *.txt in a > folder and if present execute a target.. Use the condition task with a resourcecount condition to ste a property and make your target use that property. Stefan ---

Help With Condition Task

2009-10-29 Thread Rez P
Hi I need help for what I need to do and not sure how to do it. I have bunch of property files with different extensions, file1.{qa,staging,prod.uk,prod.us,prod.nz} and file2.{qa,staging,prod} and file3.{qa,staging,prod}. I need to have the copy task copy the correct respective environment

Re: Ant style Pattern Matching api to find indexOf

2009-10-29 Thread Scot P. Floess
OK I see what you are asking now - got it. So you should be able to do that with propertyregex - I just need to think about the regular expression - but it is possible. Is a simple true/false sufficient as a result or do you require the actual indexOf? BTW, you could probably do something

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Matt Benson
Okay, the idea of using a fileset to specify possible matches by pattern is right. All you have to add to that is the use of the resourcecount task/condition to count the number of files matched. If you're using a version of Ant earlier than 1.7.0 you can use with an condition to determine

AW: Source code for Ant-optional

2009-10-29 Thread Jan.Materne
I would think in http://svn.apache.org/repos/asf/ant/core/tags/ANT_153/ But you could also download an old source distro. http://archive.apache.org/dist/ant/source/apache-ant-1.5.3-1-src.zip Jan >-Ursprüngliche Nachricht- >Von: Lovisa Jimmerfors [mailto:lovisa.jimmerf...@ericsson.com]

RE: Alternative for taks to check a pattern of file existence

2009-10-29 Thread cvsusr
Hi Gilbert, Thanks.. I replace the code with this.. its working fine.. Thanks for correcting me.. Regards Sri Rebhan, Gilbert wrote: > > > > -Original Message- > From: cvsusr [mailto:sp...@rediffmail.com] > Sent: Thursday, October 29, 2009 3:34 PM > To: user@ant.apache.org > Sub

RE: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Rebhan, Gilbert
-Original Message- From: cvsusr [mailto:sp...@rediffmail.com] Sent: Thursday, October 29, 2009 3:34 PM To: user@ant.apache.org Subject: Re: Alternative for taks to check a pattern of file existence /* file list::: @{file} */ using for - which requires antcontrib

recursive exclude

2009-10-29 Thread it99
I'm trying to create a jar file and exluding certain packages and/or classes. Some of my excludes are not working correctly. Is there any way to recursively exclude a directory and all of it's sub-directory layers? There are varying levels underneath the main direcectory. In the below example I w

RE: Timestamps

2009-10-29 Thread Andreas Axelsson
Thanks, that solves half of my problem for now, even if it causes all files to be copied at all times. /axl -Original Message- From: news [mailto:n...@ger.gmane.org] On Behalf Of Tom Widmer Sent: den 28 oktober 2009 13:31 To: ivy-u...@ant.apache.org Subject: Re: Timestamps prevents the

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread cvsusr
solution1: ... solution2 One option would be to use an appropriate and loop over it with , but requires ant-contrib. Hi Francis Galiegue & Gilbert , Thanks a lot for replying. I got it done taking inputs from all your comments. Below is the code that is working fine.

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Francis GALIEGUE
On Thu, Oct 29, 2009 at 13:00, cvsusr wrote: > > I tried this.. this is printing the *.txt file that exist in the current > folder > > >   >     >   > > file list::: @{file} > > > > > Now i need to check if the file exist then perform the target..  Do i need > to use condition for this?? >

RE: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Rebhan, Gilbert
P.S. : you may also check for existence of specific files via fileset if that is enough for your purpose = and then f.e. = or .. or Regards, Gilbert -Original Message- From: cvsusr [mailto:sp...@rediffmail.com] Sent: Thursday, October 29, 2009 12:00 PM To: user@ant.a

Re: AW: create javadoc

2009-10-29 Thread Scot P. Floess
So, then what happens? Those files don't have Javadoc generated and no error message? But isn't that the same as it not finding those source files? Were you after the error not being emitted? On Wed, 28 Oct 2009, Júlio Cesar Bueno Cotta wrote: I got a way..that is not so good..but works.

RE: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Rebhan, Gilbert
-Original Message- From: cvsusr [mailto:sp...@rediffmail.com] Sent: Thursday, October 29, 2009 12:00 PM To: user@ant.apache.org Subject: Alternative for taks to check a pattern of file existence /* Hi, I need to check for existence of files with some extension say *.txt in a folder a

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread cvsusr
I tried this.. this is printing the *.txt file that exist in the current folder file list::: @{file} Now i need to check if the file exist then perform the target.. Do i need to use condition for this?? Thanks Sri Francis Galiegue-4 wrote: > > On Thu, Oct 29, 2009 at 12:00,

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread cvsusr
Hi, Thanks for your reply.. I know to use Fileset.. but how to check with forloop.. if possible, Can you please give me an example? Im new to this concept and hence requesting your help.. Thanks Francis Galiegue-4 wrote: > > On Thu, Oct 29, 2009 at 12:00, cvsusr wrote: >> >> Hi, >> >> I nee

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Francis GALIEGUE
On Thu, Oct 29, 2009 at 12:00, cvsusr wrote: > > Hi, > > I need to check for existence of files with some extension say *.txt in a > folder and if present execute a target.. > > I found only task which checks for the existence of single file > only when the name of the file known. I wanted to che

Alternative for taks to check a pattern of file existence

2009-10-29 Thread cvsusr
Hi, I need to check for existence of files with some extension say *.txt in a folder and if present execute a target.. I found only task which checks for the existence of single file only when the name of the file known. I wanted to check whether *.txt is present or not.. if present execute a t

Source code for Ant-optional

2009-10-29 Thread Lovisa Jimmerfors
Hi, Where can I find the source code for Ant-optional 1.5.3-1? Thanks! BR Lovisa - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org

Re: Ant style Pattern Matching api to find indexOf

2009-10-29 Thread Raja Nagendra Kumar
I had a look at DirectoryScanner scan() impl and find that SelectorUtils is the class which is supporting all the matchings for include and excludes. Basically like the match method public static boolean match(String pattern, String str, boolean isCaseSensi

Re: Reg: Dependent classes

2009-10-29 Thread M White
--- On Wed, 10/28/09, Scot P. Floess wrote: The actual problem is different.The scenario is something as follows. There are 3 classes , for example ,  A , B & C A is an independent class.Class B extends class C. Now in class A I am accessing the static method of C through B ,like follows clas