I'm not sure if it works, but you can try to use cachefilset task, then making a copy of the fileset (I don't know if fileset support the refid attribute), using a mapper.
If that doesn't work, you will have to make your retrieve, and rename the files afterward. But if is not flexible enough, you can also raise a JIRA issue to ask to have ivy able to create fileset or resource collections that could be copied in ant using a mapper (and maybe with ivy specific mappers). Gilles. > -----Original Message----- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of teknokrat > Sent: jeudi 19 juillet 2007 12:19 > To: [email protected] > Subject: Re: AW: any way to rewrite dependency name? > > yes, that works. however I want to do this on a per dependency basis > i.e. some jars need to have -[rev] and some don't! > > [EMAIL PROTECTED] wrote: > > Should be possible via the pattern attribute of retrieve. > > http://incubator.apache.org/ivy/history/trunk/use/retrieve.html > > > > <ivy:retrieve pattern="[artifact].[ext]"/> > > > > > > Jan > > > >> -----Ursprüngliche Nachricht----- > >> Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von teknokrat > >> Gesendet: Donnerstag, 19. Juli 2007 11:41 > >> An: [email protected] > >> Betreff: any way to rewrite dependency name? > >> > >> This is a bit of a strange requirement, but is it possible to have ivy > >> download thefile-1.0/jar and rename it to thefile.jar? I would like to > >> have version numbers in the repository but i have some third party > >> libraries that have the name of thelibrary.jar hard coded in them. > >> > >> cheers > >> > >> > >
