ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: Contribution: dependencies task
Date Thu, 26 Aug 2004 14:06:39 GMT
Russell:  This sounds cool but would be considered to
be an external task.  If you have or can find a place
to host it we will be happy to add it to the External
Tools and Tasks section on the Ant site.

Thanks,
Matt

--- Russell Gold <russgold@gmail.com> wrote:

> Attached is code and unit tests for a task which
> will download and
> manage dependencies from a maven-style remote
> repository. The
> unit-tests contain detailed descriptions of the
> functionality:
> 
> Here is an example:
> 
> <dependencies pathId=all.jars>
>     <dependency group="rhino"     
> version="1.5R4.1"/>
>     <dependency group="junit"      version="3.8.1" 
> if="use.junit"/>
>     <dependency group="nekohtml"   version="0.8.1"
> />
> </dependencies>
> 
> This will download to a local cache if necessary the
> rhino, junit, and
> nekohtml jars and define an ant-path which contains
> them and can be
> used in a javac/java task. Specifying a "fileSetId"
> attribute on the
> dependencies task would define a fileset, as would
> be useful for a
> copy or jar task.
> 
> Each dependency must specify its group and version,
> and optionally
> type and artifact, which have the same meanings as
> in maven. That is,
> the file will be identitied as
> <group>/<type>s/<artifact>-<version>.<type>. If not
> specified,
> artifact defaults to the same as group, and type
> defaults to "jar".
> Alternately, the name attribute can override the
> name computed from
> artifact and version.
> 
> Each dependency may specify an "if" and/or "unless"
> attribute to make
> its inclusion in the path/fileset (and download)
> dependent on the
> values of the properties.
> 
> >
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> dev-unsubscribe@ant.apache.org
> For additional commands, e-mail:
dev-help@ant.apache.org



		
__________________________________
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message