ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: Howto build a jar if the .class files exist and not fail if they dont
Date Sun, 30 Jun 2002 19:09:46 GMT
--- Hanasaki JiJi <hanasaki@hanaden.com> wrote: 
> - if the jar file exists and there are no .class or .java files
> 	- continue with the build

I believe the 'whenempty' attribute of <jar> will do just this.

> - if there are .class files and no .java files
> 	- build/update the .jar if it needs to be built/updated
> 	- continue with the build
> 
> - if there are .java files
> 	- build/update the .class files
> 	- build/update the .jar if it needs to be built/updated
> 	- continue with the build

Have your "jar" target depend on your "compile" target.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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