You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@depot.apache.org by Russell Gold <ru...@gmail.com> on 2004/08/26 17:55:49 UTC

ant dependencies task

I am interesting in knowing more about this project and whether it is
an appropriate home (even if temporarily) for the dependencies ant
task I have written:


Here is a sample usage (in the HttpUnit build.xml):

    <dependencies pathId="base.classpath">
        <dependency group="rhino"      version="1.5R4.1" />
        <dependency group="junit"      version="3.8.1" />
        <dependency group="nekohtml"   version="0.9.1" unless="use.jtidy"/>
        <dependency group="servletapi" version="2.3" />
        <dependency group="jtidy"      version="4aug2000r7-dev"/>
        <dependency group="xerces"     artifact="xmlParserAPIs"
version="2.2.1"/>
        <dependency group="xerces"     artifact="xercesImpl"   
version="2.6.2"/>
    </dependencies>


This downloads the appropriate versions of the dependencies from the
Maven repository at http://www.ibiblio/maven and creates a classpath
named "base.classpath" to point to them. The nekohtml dependency is
optional and will be excluded if the property is set. The goal is to
be compatible with Maven but follow the style of ant. It is also
possible to create a FileSet for the selected dependencies by
specifying the fileSetId attribute.

The task is basically ready for use now, and I would like to make it
available to developers who are attracted by Maven's dependency
management, but don't want to use Maven.

Re: resent Re: ant dependencies task

Posted by Russell Gold <ru...@gmail.com>.
I thought I had posted it to the list, and wondered why I never heard
anything...

So instead, it is now available from <http://www.meterware.com/dependencies.zip>

resent Re: ant dependencies task

Posted by Nick Chalko <ni...@chalko.com>.
Looks great.  Depot is an excellent place for this.
 We have a very similar task except it builds a fileset.
 Id looks like this.

         <repository id="maven" url="http://www.ibiblio.org/maven/" remote="true" />
         <repository id="nickchalko-sandbox"
 url="http://cvs.apache.org/~nickchalko/SNAPSHOTS/" remote="true" />
         <cachedset id="depot-version.dependent.jars">
                 <artifact name="servletapi" ext="jar" version="2.3" repository="maven" />
                 <artifact name="junit" ext="jar" version="3.8" repository="maven" />
                 <artifact name="ant" ext="jar" version="1.6" repository="maven" />
         </cachedset>

 Where can I see yor code, I am very interested in what you did.
 I had a lot of trouble using the ant FileSet the way I wanted to.

R,
Nick