ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burkhardt Stefan (CI/TMP)" <Stefan.Burkha...@de.bosch.com>
Subject AW: Ivy classpath creation
Date Wed, 15 Oct 2008 13:30:13 GMT
Hi,

The ivy:cachepath points also to the cache and not to the lib directory. The option useOrigin
makes no difference. I tried it with beta-2 and RC-1.

I need something like "lib/commons-logging-1.0.4.jar:lib/spring-2.5.5.jar:lib/spring-test-2.5.5.jar"

Am I missing something.

Stefan
  


-----Ursprüngliche Nachricht-----
Von: Nicolas Lalevée [mailto:nicolas.lalevee@hibnet.org] 
Gesendet: Dienstag, 14. Oktober 2008 17:29
An: ivy-user@ant.apache.org
Betreff: Re: Ivy classpath creation

Le mardi 14 octobre 2008, Burkhardt Stefan (CI/TMP) a écrit :
> Hi,
>
> I am using the following command to get my artefacts within my
> ANT-Script.
> 	<ivy:retrieve
> pattern="${basedir}/lib/[artifact]-[revision].[ext]" type="jar,source"
> sync="true"/>
> It retrieves the artefacts and put the jar-files into my "lib"-folder.
>
> First Question is:
> - How can I create a classpath based on the artefact resolution and not
> from the directory. Is there a similar command like "cachefileset" for
> the "lib" directory.
>   Is there a way to create a classpath from the resolution report?

yep, see:
http://ant.apache.org/ivy/history/latest-milestone/use/cachepath.html

>
> Second question is:
> - I am using subversion and I will check in the complete lib folder with
> the jar-files. But the option "sync=true" will delete the complete
> folder. So the
>   subversion-Folder is removed too. Any Ideas to handle this?

You could just not commit your lib directory and svn:ignore it.

Nicolas

Mime
View raw message