ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey E Care <ca...@us.ibm.com>
Subject Re: Perform tasks conditionally
Date Sat, 07 Jan 2006 02:39:34 GMT
The jar task already figures this out for you.

-- 
Jeffrey E. Care (carej@us.ibm.com)
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)


Steve Roy <sroy@mac.com> wrote on 01/06/2006 09:24:43 PM:

> Hello,
> 
> I have been using Ant for about a year but I still feel like I am a 
> newbie, and maybe this explains my question, but you tell me.
> 
> I have a script where I compile the sources for my project and jar it 
> all up. This works well but I'm looking at adding an optimization where 
> the Jar task would be skipped if no source file had to be recompiled. 
> How could I do that?
> 
> I looked at the Condition task, but that didn't light up anything in my 
> mind. I'm guessing that I need to find out from the Javac task how many 
> files had to be compiled, but how would I do that?
> 
> Steve
> 
> -- 
> Steve Roy <sroy@mac.com>
> <http://homepage.mac.com/sroy>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message