> -Original Message-
> From: Stefan Bodewig [mailto:bode...@apache.org]
> Sent: 06 May 2010 04:39
> To: user@ant.apache.org
> Subject: Re: Better alternative than using foreach, for and
> if/then/else?
>
> On 2010-05-05, Bailey, Darragh wrote:
>
> >
On 2010-05-05, Bailey, Darragh wrote:
> 1) Is for/foreach the only real option for what I'm attempting to
> accomplish here in building multiple end targets based on the contents
> of properties?
I'd recommend writing a custom task for this rather than trying to
implement it in XML. Using Ant's
ous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> From: dbai...@hp.com
> To: user@ant.apache.org
> Date: Wed, 5 May 2010 16:10:41 +
> Subject: RE: Better alternative than using foreach, for and if/then/else?
>
>
> > -Original Message-
>
> -Original Message-
> From: Peter Reilly [mailto:peter.kitt.rei...@gmail.com]
> Sent: 05 May 2010 14:46
> To: Ant Users List
> Subject: Re: Better alternative than using foreach, for and
> if/then/else?
>
> You need to use ant 1.8 and the task.
> declares
You need to use ant 1.8 and the task.
declares that a property is local to the current scope,
as defined by the enclosing or
see: http://ant.apache.org/manual/CoreTasks/local.html
Have recently just started using Ant, with the goal to using it as the default
build tool across an entire project. While most of the project will be java
based, there are a few parts that won't be and I'm trying to make ant work as
effectively as possible for these sections.
One of them just
Z W wrote:
Hi
How do I embed a if-then statement inside sshexec knowing that the remote
shell is a csh ?
Hi.
why dont you tell us what it is you are trying to do, instead of asking
a problem at a time? It is good to see you making progress, but I do
wonder if you are on the right path
You have to use the CSH syntax. You're using Bourne Shell syntax:
if (expr) then
...
else if (expr2) then
...
else
...
endif
On Feb 10, 2008 8:50 AM, Z W <[EMAIL PROTECTED]> wrote:
> Hi
>
> How do I embed a if-then statement inside sshexec knowing that the remote
> sh
Hi
How do I embed a if-then statement inside sshexec knowing that the remote
shell is a csh ?
I keep getting this error:
[sshexec] if: Expression Syntax.
[sshexec] Remote command failed with exit status 1
thanks
On 1/25/08, David Weintraub <[EMAIL PROTECTED]> wrote:
>
> Take a look at the task. To create an if-then type of
> statement, add a dependency to your task that runs a task that tests
> the condition, and have that set a property. Then have your original
> task depe
Take a look at the task. To create an if-then type of
statement, add a dependency to your task that runs a task that tests
the condition, and have that set a property. Then have your original
task depend upon that property:
task. This is a bit
easier to follow, but you now depend upon
e files in them that
have been updated If there are no files that have been updated, my build
process doesn't create the folder.... I would like to add an if-then
statement to the target below, so it will ftp the files if the folder
exists, or move on to the next target if the folder does
Since ant properties are immutable, all you have to do is set BAR the
value of FOO.
mailto:[EMAIL PROTECTED]
Sent: Monday, September 26, 2005 12:32 AM
To: Ant Users List
Subject: if then
I want to do something quite simple, but with Ant it seems really
difficult.
I want to check a property
On Mon, 26 Sep 2005 07:41:14 +0200, Nicolas Vervelle wrote:
done.if the requirement were a little more complicated, you'd use ,
only if all that fails, you need antcontrib (or a 3-target construction).
>Check ant-contrib, it's a library with several additional ant tasks, for
>example
>http
Check ant-contrib, it's a library with several additional ant tasks, for
example
http://ant-contrib.sourceforge.net
Kai Hendry wrote:
I want to do something quite simple, but with Ant it seems really
difficult.
I want to check a property BAR exists. If it is not set, then set it
to anoth
I want to do something quite simple, but with Ant it seems really difficult.
I want to check a property BAR exists. If it is not set, then set it to
another property called FOO.
In shell:
FOO="blah"
if [ ! $BAR ]; then BAR=$FOO ; fi
echo $BAR $FOO
Right now I think I have to setup a separate
On Mon, 17 Feb 2003, Marc Pellier <[EMAIL PROTECTED]> wrote:
> How can I do
>
> if (a=2)
> print("Message1");
> else
> print("Message2");
${message}
Stefan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addi
possible answer :
- Original Message -
From: "Pellier, Marc" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Monday, February 17, 2003 3:05 PM
Subject: if then else with ant
How can I do
if (a=2)
print("Message1&
3 15:06
An: Ant Users List
Betreff: if then else with ant
How can I do
if (a=2)
print("Message1");
else
print("Message2");
with ANT
Disclaimer:
This electronic transmission and
How can I do
if (a=2)
print("Message1");
else
print("Message2");
with ANT
Disclaimer:
This electronic transmission and any files attached to it are strictly
confidential and intended solely for the a
20 matches
Mail list logo