RE: Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Anderson, Rob (Global Trade)
Why have the wrapper target at all? Add the if condition to the "_pmd" target itself. -Rob Anderson > -Original Message- > From: Eric Wood [mailto:[EMAIL PROTECTED] > Sent: Friday, September 21, 2007 6:18 AM > To: Ant Users List > Subject: Best way to perfor

RE: Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Eric Wood
--Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: Friday, September 21, 2007 9:49 AM To: Ant Users List Subject: Re: Best way to perform this type of conditonal test in ANT The "ant" way is not to think in terms of calling targets, it is more in-terms of invoking a ta

Re: Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Peter Reilly
argets? > > Eric > > -Original Message- > From: Peter Reilly [mailto:[EMAIL PROTECTED] > Sent: Friday, September 21, 2007 9:27 AM > To: Ant Users List > Subject: Re: Best way to perform this type of conditonal test in ANT > > Opp, I hit send by accident, (gmail

RE: Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Martin Gainty
to perform this type of conditonal test in ANT> Date: Fri, 21 Sep 2007 09:18:13 -0400> From: [EMAIL PROTECTED]> To: user@ant.apache.org> > I want to only call a target ( _pmd ) if the property "pmd.jar" is set. > > > > > > depends="pmd-init

RE: Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Eric Wood
set that I want to reference later are unavailable. How do I " ... do pmd stuff" by invoking other targets? Eric -Original Message- From: Peter Reilly [mailto:[EMAIL PROTECTED] Sent: Friday, September 21, 2007 9:27 AM To: Ant Users List Subject: Re: Best way to perform this typ

Re: Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Peter Reilly
Opp, I hit send by accident, (gmail does not have the same key shortcuts as emacs). ... do pmd stuff On 9/21/07, Peter Reilly <[EMAIL PROTECTED]> wrote: > > > > > > > > On 9/21/07, Eric Wood <[EMAIL PROTECTED]> wrote: > > I want to only call a targe

Re: Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Peter Reilly
On 9/21/07, Eric Wood <[EMAIL PROTECTED]> wrote: > I want to only call a target ( _pmd ) if the property "pmd.jar" is set. > > > > > > depends="pmd-init,find-pmd-java-files,modified-java-pmd,new-java-pmd" /> > > > The problem I have with the code above is

Re: Best way to perform this type of conditonal test in ANT

2007-09-21 Thread David Kavanagh
Why not use instead of ? On 9/21/07, Eric Wood <[EMAIL PROTECTED]> wrote: > > I want to only call a target ( _pmd ) if the property "pmd.jar" is set. > > > > > > depends="pmd-init,find-pmd-java-files,modified-java-pmd,new-java-pmd" /> > > > The problem I have with the cod

Best way to perform this type of conditonal test in ANT

2007-09-21 Thread Eric Wood
I want to only call a target ( _pmd ) if the property "pmd.jar" is set. The problem I have with the code above is that runtarget seems to run in its own JVM so properties that are set in there that I need to reference later are not available after it runs. Also, if I a