Piyush, You should be able to use the ANT zip to extract the ivy-conf.xml and place it in a known place. Put it into a macrodef and you have a handy piece of code.
:-) Jim -----Original Message----- From: Xavier Hanin [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 9:41 AM To: [email protected] Subject: Re: ivy:configure loading configuration as a resource from the classpath On 2/28/07, Piyush Purang <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to integrate ivy, as our dependency manager, into our build > processes. I wanted to know if there is a possibility to configure i.e. use > ivy:configure ant task and pass it a resource eg, com/xyz/abcd/ivy/ivy- > conf.xml which is part of a jar file on the classpath (like one can do for > ant:property task). This way we can deliver configration in a jar file. > Note: I don't want to use JAR URL scheme as we don't know by which name > (incl versions etc) and where (location on the FS) the jar might be. > > Is that possible out of the box? Unfortunately not. > If not has anyone written such an ant task? Not me :-) > How easy would that be? I don't really know, but it shouldn't be too complex to mimic what is done in other ant tasks. If you use ant 1.7 maybe you could even use the new Resource concept to configure with (almost) whatever you want. > Maybe it is already a part of the nightly builds? Nope. - Xavier > > Thanks. > > Cheers > Piyush Purang >
