You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Piyush Purang <pp...@gmail.com> on 2007/02/28 12:44:59 UTC
ivy:configure loading configuration as a resource from the classpath
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?
If not has anyone written such an ant task? How easy would that be? Maybe it
is already a part of the nightly builds?
Thanks.
Cheers
Piyush Purang
Re: ivy:configure loading configuration as a resource from the classpath
Posted by Xavier Hanin <xa...@gmail.com>.
On 2/28/07, Piyush Purang <pp...@gmail.com> 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
>