ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: build dependent projects
Date Tue, 30 Nov 2004 14:40:30 GMT
It doesnt matter how you call the jar target in xxx buildfile.
That buildfile should ensure to create the jar only if it´s needed.

So running the first time (with non existing jars) xxx:jar should compile
the source and create the jar. Then the master could do its work against
that new jars.
Running a second time and xxx.jar should see, that the jar is uptodate
and does nothing.. So the master could to its work against the valid jar
again.

Jan

> -----Ursprüngliche Nachricht-----
> Von: Mikael Petterson (KI/EAB) [mailto:mikael.petterson@ericsson.com]
> Gesendet am: Dienstag, 30. November 2004 15:28
> An: Ant Users List
> Betreff: RE: build dependent projects
> 
> Hi,
> 
> I try <ant antfile="xxx" dir="mydir" target="jar">
> So this will only be done if there is a need to rebuild. That 
> means that ant will check if the jar is
> out of date?
> 
> //Mikael
> 
> -----Original Message-----
> From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de]
> Sent: den 30 november 2004 15:24
> To: user@ant.apache.org
> Subject: AW: build dependent projects
> 
> 
> Simply let Ant build the two jars. It should only work if the 
> JARs needs to 
> be updated.
> 
> Jan
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Mikael Petterson (KI/EAB) 
[mailto:mikael.petterson@ericsson.com]
> Gesendet am: Dienstag, 30. November 2004 15:20
> An: user@ant.apache.org
> Betreff: build dependent projects
> 
> Hi!
> 
>  In order to build a specific java project I use proj1.jar 
> and proj2.jar in classpath.
> 
> But these projects could be uncompiled at the time we are 
> building our project.
> 
> I am thinking of doing the following:
> 
> * check if the dependant jars exists.
> * If jars does not exist, then we compile the source and 
> create a jar of the class files.
> * If jar exist then check if it is up-to-date ( is it 
> possible to do that??).
> 
> Is there another way to do this?
> 
> Regards,
> 
> //Mikael
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

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