> > If you use ant to copy a file and supply a url, doesn't do 
> > the normally checking if the local version is the same and 
> > if not - it does a remote download.  I would prefer this to 
> > a build failure.
> 
> That would be best for building Excalibur, but I wasn't sure if 
> we should be modifying files in their ant directory without  
> asking them.  Or is there a way to keep them in the Excalibur 
> directory and have Ant load them?

The only time you need to include files into Ant (i.e. Ant/lib) is 
when you want the convenience of not having to declare an ant task 
that your dependent on.  I would not want a build procedure to 
automatically add anything to my ant/lib directory, however, its 
possible to declare an ant task within the build script - the ant 
task declaration can be dependent on a another target that loads 
jars into a build-local directory before executing the tasks 
definition, before invoking the extended task.

Does that address the problem (or should I go off to the cafe for an 
hour or two) 
:-)

Cheers, Steve.

p.s. Just for reference, in the Merlin package I'm providing a 
target through which a user can explicitly add avalon-framework.jar, 
logkit.jar and merlin.jar to the ant/lib directory.  The demos need 
this because merlin.jar is dependent on the framework - etc. and 
targets executed by the Merlin load task are also dependent on the 
framework.  It's possible to avoid this but it means duplicate 
definitions of classpaths for both the task def and for the task 
instance (which is just plain painful). My solution in the enterprise 
suite is to provide a demo task that presumes that ant/lib dependencies 
are installed, but checks if this is the case and if not - prints out 
a nice little message telling the user to invoke the "export" target 
to update ant/lib.

SJM

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

Reply via email to