Re: Basic question re Antform and conditional execution of tasks

2010-02-26 Thread Rhino
Okay, the 'Omit_Optional_Partx' stuff works okay now that each of those targets are in the 'buildall'. Ant apparently considers running them but only actually executes the ones that should run, based on whether their checkbox was selected in the AntForm. However, there is still one BIG problem

Re: Basic question re Antform and conditional execution of tasks

2010-02-26 Thread Patrick Martin
Hello, Indeed, if your 'Omit_Optional_Partx' targets are not part of any depends attribute, they will not get called. You should probably have something like: ... ... ... ... ... Rgds, Patrick On Thu, Feb 25, 2010 at 6:43 PM, Rhino wrote: > Thank you, Patrick, for your helpful sugg

Re: Basic question re Antform and conditional execution of tasks

2010-02-25 Thread Patrick Martin
Hello, You probably want to use a booleanProperty instead of a checkSelectionProperty. The checkSelectionProperty allows to select multiple values (you use it only for one). It always set the property (even if empty), so your statements will get executed as they test the property existence and n

Basic question re Antform and conditional execution of tasks

2010-02-24 Thread Rhino
I was reasonably comfortable with Ant a few years ago but haven't touched it in quite a while so I need a bit of a refresher. I've tried looking in the manua but it always seems to answer only part of the question so I thought I'd try here. Among the things that my Ant script needs to do is wr

Re: *****spam***** Conditional execution of tasks

2006-08-31 Thread Geoffrey Mitchell
Have one target build a fileset of the modified files and give it a refid, and also use pathconvert to assign a property containing the contents of the fileset with setonempty="false". Then run your copy target conditionally on the property. Hi, A use a copy task t

Re: Conditional execution of tasks

2006-08-31 Thread Antoine Levy-Lambert
Original-Nachricht Datum: Thu, 31 Aug 2006 14:47:39 -0300 Von: "Charles Abreu" <[EMAIL PROTECTED]> An: user@ant.apache.org Betreff: Conditional execution of tasks > Hi, > > A use a copy task to copy modified files from one directory to another > directory. I need

Conditional execution of tasks

2006-08-31 Thread Charles Abreu
Hi, A use a copy task to copy modified files from one directory to another directory. I need to run another task if, and only if, at last one file was copied. Is this possible? Thanks!

Re: conditional execution

2006-02-22 Thread Paul Pogonyshev
On 21 February 2006 23:52, Anderson, Rob (Global Trade) wrote: > If the existance of a file is your condition, use a combination of > , , > [...] Thanks, I already implemented it using macros and task. Making it the way you suggest would be kinda ugly in my case, since I need to repeat the same

RE: conditional execution

2006-02-21 Thread Anderson, Rob (Global Trade)
17, 2006 7:04 AM > To: user@ant.apache.org > Subject: conditional execution > > Hi, > > Is it possible to do some sorts of conditional execution of > tasks other than and scripts > (require extensions)? > > I need things like if file exists, do this, else do that

Re: conditional execution

2006-02-17 Thread Paul Pogonyshev
On 17 February 2006 17:55, Matt Benson wrote: > --- Paul Pogonyshev <[EMAIL PROTECTED]> > wrote: > > > On 17 February 2006 17:07, Burgess, Benjamin wrote: > > > Ant-contrib has an "if" task which you could use. > > > > > > http://ant-contrib.sourceforge.net/ > > > > > > However, the traditional

Re: conditional execution

2006-02-17 Thread Matt Benson
--- Paul Pogonyshev <[EMAIL PROTECTED]> wrote: > On 17 February 2006 17:07, Burgess, Benjamin wrote: > > Ant-contrib has an "if" task which you could use. > > > > http://ant-contrib.sourceforge.net/ > > > > However, the traditional Ant solution is to split > each piece of > > functionality into

Re: conditional execution

2006-02-17 Thread Paul Pogonyshev
On 17 February 2006 17:07, Burgess, Benjamin wrote: > Ant-contrib has an "if" task which you could use. > > http://ant-contrib.sourceforge.net/ > > However, the traditional Ant solution is to split each piece of > functionality into its own target, set properties based on condition, > and use the

RE: conditional execution

2006-02-17 Thread Burgess, Benjamin
--Original Message- From: Paul Pogonyshev [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 10:04 AM To: user@ant.apache.org Subject: conditional execution Hi, Is it possible to do some sorts of conditional execution of tasks other than and scripts (require extensions)? I need things li

conditional execution

2006-02-17 Thread Paul Pogonyshev
Hi, Is it possible to do some sorts of conditional execution of tasks other than and scripts (require extensions)? I need things like if file exists, do this, else do that. Or, if files are equal (byte-wise), do something. Paul