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
--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
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
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
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
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
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
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
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