You cant.
JavaTasks vs.
JavaConditions vs. --
But you could write the condition directly:
JavaTasks vs.
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
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
---
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
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
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
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]
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
-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
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
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
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.
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??
>
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
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.
-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
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,
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
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
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
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
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
--- 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
23 matches
Mail list logo