RE: conditions in antlib?

2010-11-12 Thread Ludwig, Michael
> have you given something like > > > > > > > > a try? What do you get?? I haven't tried that. I have yet to explore . I was thinking of something like this: But I don't know if you can adapt it to your purposes. Michael

Re: conditions in antlib?

2010-11-12 Thread Stefan Bodewig
On 2010-11-12, Stefan Bodewig wrote: > On 2010-11-12, wolfgang haefelinger wrote: >> I want to provide a *single antlib* with the following requirements: >> (a) must work with Ant 1.7.x and newer >> (b) uses appearing to be a 1.8.x feature. > I'm sorry but I don't know of any way to do that.

Re: conditions in antlib?

2010-11-12 Thread Stefan Bodewig
On 2010-11-12, wolfgang haefelinger wrote: > I want to provide a *single antlib* with the following requirements: > (a) must work with Ant 1.7.x and newer > (b) uses appearing to be a 1.8.x feature. I'm sorry but I don't know of any way to do that. > In other words, don't we need a conditional

Re: conditions in antlib?

2010-11-12 Thread wolfgang haefelinger
Sorry, for hitting the wrong button! Michael, have you given something like a try? What do you get?? This is what I get: tryme.xml:4: The following error occurred while executing this line: Invalid task in antlib condition class org.apache.tools.ant.TaskAdapter does not extend o

Re: conditions in antlib?

2010-11-12 Thread wolfgang haefelinger
Hello Michael, have you given something like On Fri, Nov 12, 2010 at 2:04 PM, Ludwig, Michael wrote: > Moin Wolfgang, > >> I want to provide a *single antlib* with the following requirements: >> (a) must work with Ant 1.7.x and newer >> (b) uses  appearing to be a 1.8.x feature. > >> do

RE: conditions in antlib?

2010-11-12 Thread Ludwig, Michael
Moin Wolfgang, > I want to provide a *single antlib* with the following requirements: > (a) must work with Ant 1.7.x and newer > (b) uses appearing to be a 1.8.x feature. > don't we need a conditional component-, type-, > macrodef and taskdef definition?? You could parse ${ant.version}. ant.

conditions in antlib?

2010-11-12 Thread wolfgang haefelinger
Hello, I want to provide a *single antlib* with the following requirements: (a) must work with Ant 1.7.x and newer (b) uses appearing to be a 1.8.x feature. How would I do this? In other words, don't we need a conditional component-, type-, macrodef and taskdef definition?? Something like

Re: boolean expressions in if/unless conditions

2009-11-01 Thread Stefan Bodewig
On 2009-10-31, Shawn Castrianni wrote: > Usually the response to this request is to use the condition task and > preprocess a complex Boolean expression condition into a single > property to set. This is fine, but sometimes it is more efficient to > just want to put the expression right in the i

boolean expressions in if/unless conditions

2009-10-30 Thread Shawn Castrianni
I realize that the elements that support if conditions (like the include elements in a fileset OR target elements themselves) are expecting a simple ant property. ANT then will do the very simple existence check on that property. If it has been defined, the if condition returns true and the

Re: if conditions on numerical values?

2009-04-30 Thread oli85
Mob : +33 (0) 683 877 875 > Tel : +33 (0) 178 945 552 > One2team > 40 avenue Raymond Poincaré > 75116 Paris > > - > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.

Re: if conditions on numerical values?

2009-04-29 Thread Francis Galiegue
Le Wednesday 29 April 2009 20:25:01 Francis Galiegue, vous avez écrit : > > You don't need numerical arithmetic for this (if you need it anyway, have a > look at ant-contrib's task). You can use plain ant: > > > > > Oops, sorry, that should read

Re: if conditions on numerical values?

2009-04-29 Thread Francis Galiegue
Le Wednesday 29 April 2009 19:12:42 oli85, vous avez écrit : > I'm running a java task in ant and manage it capture its return value (0 or > 1) by using resultproperty attribute of java task. What I'm looking for is > to fail the ant build if this value is not 0. So does anyone know if ant > suppo

if conditions on numerical values?

2009-04-29 Thread oli85
View this message in context: http://www.nabble.com/if-conditions-on-numerical-values--tp23296147p23296147.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@ant.apac

Re: if and conditions

2009-03-13 Thread Robert Anderson
You can also use the if and unless attributes of the target to control certain behavior. On Fri, Mar 6, 2009 at 10:59 AM, Scott Stark wrote: > >The task is part of the AntContrib package which is available > >from http://ant-contrib.sourceforge.net/>. Task descriptions are from > >

Re: if and conditions

2009-03-06 Thread Scott Stark
>The task is part of the AntContrib package which is available >from http://ant-contrib.sourceforge.net/>. Task descriptions are from > Thanks all for the replies. Yes I already found the documentation but there's nothing in there about

Re: if and conditions

2009-03-06 Thread myneniram
Sent via BlackBerry by AT&T -Original Message- From: Scott Stark Date: Fri, 6 Mar 2009 10:26:05 To: Ant Users List Subject: if and conditions Dumb question, but where in the documentation (http://ant.apache.org/manual/index.html) is there a discussion of and ? thanks, S

Re: if and conditions

2009-03-06 Thread David Weintraub
The Condition task is one of the "Core Tasks" of Ant. You'll see a link on the left hand side of the manual for Ant Tasks. Select that, then "Core Tasks". Condition should be there. The task is part of the AntContrib package which is available from . Task desc

Re: if and conditions

2009-03-06 Thread Scot P. Floess
if is from ant contrib yes there is documentation on condition under core tasks On Fri, 6 Mar 2009, Scott Stark wrote: Dumb question, but where in the documentation (http://ant.apache.org/manual/index.html) is there a discussion of and ? thanks, Scott Scot P. Floess 27 Lake Royale Louisb

Re: if and conditions

2009-03-06 Thread Ben Leedham
I was looking at it today. http://ant.apache.org/manual/CoreTasks/condition.html On Fri, 2009-03-06 at 10:26 -0600, Scott Stark wrote: > Dumb question, but where in the documentation > (http://ant.apache.org/manual/index.html) is there a discussion of and > ? > > thanks, > Scott -- Regards,

if and conditions

2009-03-06 Thread Scott Stark
Dumb question, but where in the documentation (http://ant.apache.org/manual/index.html) is there a discussion of and ? thanks, Scott

RE: Multiple conditions satisfying in an ant target

2008-10-31 Thread sukanya
Hi Gilbert, It works!. I forgot to mention tat either one of these these conditions may be false and still should work. I replaced with and that also works :) thanks so much for your timely help. Rebhan, Gilbert wrote: > > > -Original Message- > From: sukanya [m

RE: Multiple conditions satisfying in an ant target

2008-10-31 Thread Rebhan, Gilbert
-Original Message- From: sukanya [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2008 8:48 AM To: user@ant.apache.org Subject: Multiple conditions satisfying in an ant target /* [...] Start something new Here how do i inclue isbad also as an unless

Multiple conditions satisfying in an ant target

2008-10-31 Thread sukanya
Hi All, I have two separate conditions using equals operator. There is an ant call to a target. This target has a check for unless with one of the conditions. How do I include another unless such tat the second condition is also included in this single ant target. eg

RE: Ant & JBoss - How to check conditions?

2008-01-04 Thread Loehr, Ruel
file and find out what class it is calling and the just call it via a java call. R -Original Message- From: serdsch [mailto:[EMAIL PROTECTED] Sent: Friday, January 04, 2008 9:59 AM To: user@ant.apache.org Subject: Ant & JBoss - How to check conditions? I want to write an Ant sc

Ant & JBoss - How to check conditions?

2008-01-04 Thread serdsch
during runtime? Thx a lot, Sergio -- View this message in context: http://www.nabble.com/Ant---JBoss---How-to-check-conditions--tp14619384p14619384.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubsc

AW: Set up a path based on conditions?

2006-03-27 Thread Jan.Materne
>I need to create a path containing elements which Basically a >i) don't exist yet When it doesnt exist - why including that? You could specify it inside the fileset and it must exist when using the fileset. >and ii) vary according to what properties are set. Selectors ... Jan

Set up a path based on conditions?

2006-03-21 Thread Daniel Blaukopf
Hi, I need to create a path containing elements which i) don't exist yet and ii) vary according to what properties are set. Ideally, I would do this: None of A, B, or C exist at the time I need to build the list, so as far as I can tell is not an option. However,

RE: How to give conditions.?

2006-02-23 Thread Shweta Bodade
Thnx I used And want to retrieve the value entered I am using Eclipse but before I can enter any value through console It displays message. Like. Failed to read input from Console. Do I need to write anything else before I close input task Like sleep or something...?

Re: How to give conditions.?

2006-02-23 Thread Patrick Martin
And if you want a nicer GUI than , you can use antform: http://antforms.sourceforge.net/ Patrick M. On 2/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >If I want to give conditions like a user i/p which > >decides whther my application is to be deployed in

AW: How to give conditions.?

2006-02-22 Thread Jan.Materne
>If I want to give conditions like a user i/p which >decides whther my application is to be deployed in Tomcat or Weblogic > >Then is it possible through ANT. ? >Something like one build.xml asking where do you want to >deploy th

How to give conditions.?

2006-02-22 Thread Shweta Bodade
Hello all, If I want to give conditions like a user i/p which decides whther my application is to be deployed in Tomcat or Weblogic Then is it possible through ANT. Something like one build.xml asking where do you want to deploy the project After user gives i/p then respective

Re: Conditions

2005-03-22 Thread Antoine Levy-Lambert
If you do not use ant-contrib, you have to have 2 targets when something is dependent upon a condition > So I'm trying to execute the mail task based on a conditional statement. > I'm not sure if I'm doing this incorrectly or not. Basically, what I > want out of this target

RE: Conditions

2005-03-22 Thread Bill Rich
To avoid the procedural logic you could have done the following: This is more within the philosophy/architecture of Ant. Bill -Original Message- From: Rich Harris [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 11:10 AM To: Ant Users List Subject: RE: Conditions

RE: Conditions

2005-03-22 Thread Rich Harris
-Rich -Original Message- From: David Resnick [mailto:[EMAIL PROTECTED] Sent: Monday, March 21, 2005 9:37 PM To: 'Ant Users List' Subject: RE: Conditions The only action a condition task performs is set a property if the condition is true. You can then use the property you have s

RE: Conditions

2005-03-21 Thread David Resnick
in the ant-contrib tasks. http://ant-contrib.sourceforge.net/tasks/tasks/if.html THT, David -Original Message- From: Rich Harris [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 04:57 To: Ant Users List Subject: Conditions So I'm trying to execute the mail task based

Conditions

2005-03-21 Thread Rich Harris
So I'm trying to execute the mail task based on a conditional statement. I'm not sure if I'm doing this incorrectly or not. Basically, what I want out of this target is to send an email if the value of a property in my props file is true (yes it is in fact in my props file and my props file is refe

RE: Multiple if or unless conditions?

2005-03-09 Thread Dominique Devienne
> From: Baker, Derek [mailto:[EMAIL PROTECTED] > > Is it possbile to have multiple if or unless conditions? [target > name="foo" > if="property1, property2"] No. Combine the conditions with , in a target that 'name'

Multiple if or unless conditions?

2005-03-09 Thread Baker, Derek
Is it possbile to have multiple if or unless conditions? [target name="foo" if="property1, property2"] Thanks, Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Properties set within conditions

2004-10-12 Thread Rhino
know. This solution was tested in Ant 1.6.1 on Windows XP. Rhino - Original Message - From: "Rhino" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Tuesday, October 12, 2004 12:46 PM Subject: Re: Properties set within conditions

Re: Properties set within conditions

2004-10-12 Thread Rhino
;[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Tuesday, October 12, 2004 12:39 PM Subject: RE: Properties set within conditions > From: Rhino [mailto:[EMAIL PROTECTED] > > Can you tell me what search words to use for finding some of these m

Re: Properties set within conditions

2004-10-12 Thread Rhino
! Rhino - Original Message - From: "Vadim Kazakov" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Tuesday, October 12, 2004 12:25 PM Subject: RE: Properties set within conditions I think you misunderstood what I was trying to say, I was

RE: Properties set within conditions

2004-10-12 Thread Dominique Devienne
y have my own version of that supports different builtin conditions, so I rarely need the technique anymore ;-) --DD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Properties set within conditions

2004-10-12 Thread Vadim Kazakov
] Sent: October 12, 2004 9:52 AM To: Ant Users List Subject: Re: Properties set within conditions Vadim, I don't think I've ever seen a target that sets properties within a conditional before. Could you possibly provide an example? By the way, I've got my script working very

Re: Properties set within conditions

2004-10-12 Thread Rhino
led what I am trying to do. I really don't want to take a lot of time from anyone on the list. I'm sure you're all very busy on your own work. I just need to see some examples that set properties based on conditions and that keep those properties visible in later tasks. I prefe

RE: Properties set within conditions

2004-10-12 Thread Dominique Devienne
> From: Rhino [mailto:[EMAIL PROTECTED] > I don't think I've ever seen a target that sets properties within a > conditional before. Could you possibly provide an example? > > By the way, I've got my script working very nicely now with 'antcallback'. > Thanks *very* much for this suggestion! Howeve

Re: Properties set within conditions

2004-10-12 Thread Rhino
l like to see other ways to do the same thing, especially ways that don't involve installing extra tasks. Rhino - Original Message - From: "Vadim Kazakov" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Tuesday, October 12, 2004 11:

RE: Properties set within conditions

2004-10-12 Thread Vadim Kazakov
Why don't you try setting the properties using conditionals in the getserver target. Instead of calling down to sub targets. -Original Message- From: Rhino [mailto:[EMAIL PROTECTED] Sent: October 12, 2004 9:20 AM To: Ant Users List Subject: Re: Properties set within condition

Re: Properties set within conditions

2004-10-12 Thread Rhino
r way, I'd love to hear about it. Rhino - Original Message - From: "Vadim Kazakov" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Tuesday, October 12, 2004 10:37 AM Subject: RE: Properties set within conditions This is beca

RE: Properties set within conditions

2004-10-12 Thread Vadim Kazakov
lback. From: Rhino [mailto:[EMAIL PROTECTED] Sent: October 12, 2004 7:10 AM To: ant-user Subject: Properties set within conditions Hi, I'm having a problem with seeing a property that I set within some conditional logic. Some new properties are only visible within the targ

Properties set within conditions

2004-10-12 Thread Rhino
Hi,   I'm having a problem with seeing a property that I set within some conditional logic. Some new properties are only visible within the target where I add them but I need them to be visible in later targets as well.   I've spent several hours looking at the archives for this mailing list

Re: can I subclass Condition to create my own conditions for "waitfor" task?

2003-09-22 Thread peter reilly
You will need to use the nightly build of ant (1.6alpha). an add(Condition condition) method has been added to ConditionBase. This will pick up typedef's conditions. Usage: Write a condition - a class implementing org.apache.tools.ant.taskdefs.condition.Condition Typedef the cond