ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Software AG <...@stark-verlag.de>
Subject AW: Conditional Execution
Date Mon, 07 Oct 2002 09:39:07 GMT
Hi, Stefan.

Just now I had the first successful run of my first custom ant task. It's
really easy.
But the solution you suggested (uptodate) will be the way for me to go,
since it is more portable.

Thanks for you help.

Hiran

> -----Urspr√ľngliche Nachricht-----
> Von: Stefan Bodewig [mailto:bodewig@apache.org]
> Gesendet: Montag, 7. Oktober 2002 11:33
> An: ant-user@jakarta.apache.org
> Betreff: Re: Conditional Execution
> 
> 
> On Mon, 7 Oct 2002, Software AG <sag@stark-verlag.de> wrote:
> 
> > You say <signjar> can sign jars only if they were changed - and this
> > by using the signedjar option? How this?
> 
> I've never used it myself, but this is what the manual suggests.  If
> x.jar is your unsigned jar and y.jar is the signed version, something
> like <signjar jar="x.jar" signedjar="y.jar"/> will not do anything
> unless x.jar is newer than y.jar.
> 
> > The task I think of looks like:
> > 
> > <if-modified runtarget="name_of_target_that_creates_and_signs_jar"
> > comparedto="signed.jar">
> >   <fileset ...>
> >   </fileset>
> > </if-modified>
> 
> Take a look at <uptodate>.  Using that, you can set a property if
> everything is already built.  Put the conditional stuff into targets
> that test for this property in their unless attribute.
> 
> Stefan
> 
> --
> To unsubscribe, e-mail:   
<mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message