RE: Better alternative than using foreach, for and if/then/else?

2010-05-07 Thread Bailey, Darragh
> -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: > > >

Re: Better alternative than using foreach, for and if/then/else?

2010-05-05 Thread Stefan Bodewig
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

RE: Better alternative than using foreach, for and if/then/else?

2010-05-05 Thread Martin Gainty
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- >

RE: Better alternative than using foreach, for and if/then/else?

2010-05-05 Thread Bailey, Darragh
> -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

Re: Better alternative than using foreach, for and if/then/else?

2010-05-05 Thread Peter Reilly
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

Better alternative than using foreach, for and if/then/else?

2010-05-05 Thread Bailey, Darragh
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

Re: embed "if-then" in sshexec command question

2008-02-11 Thread Steve Loughran
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

Re: embed "if-then" in sshexec command question

2008-02-10 Thread David Weintraub
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

embed "if-then" in sshexec command question

2008-02-10 Thread Z W
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

Re: adding an if-then statement to ftp target...

2008-01-25 Thread Christopher Styles
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

Re: adding an if-then statement to ftp target...

2008-01-25 Thread David Weintraub
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

adding an if-then statement to ftp target...

2008-01-25 Thread Christopher Styles
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

RE: if then

2005-09-26 Thread Dick, Brian E.
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

Re: if then

2005-09-26 Thread Juergen Hermann
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

Re: if then

2005-09-25 Thread Nicolas Vervelle
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

if then

2005-09-25 Thread Kai Hendry
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

Re: if then else with ant

2003-02-17 Thread Stefan Bodewig
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

Re: if then else with ant

2003-02-17 Thread Antoine Levy-Lambert
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&

AW: if then else with ant

2003-02-17 Thread Jan . Materne
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

if then else with ant

2003-02-17 Thread Pellier, Marc
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