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:[EMAIL PROTECTED]
> 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: den 30 november 2004 15:24
> To: [EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]
> Gesendet am: Dienstag, 30. November 2004 15:20
> An: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to