ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Tharp <joshua-th...@alumni.calpoly.edu>
Subject Re: Depedencies in shared repository
Date Tue, 04 Aug 2009 14:45:01 GMT
Have you looked at adding more resolvers? Perhaps one for the Maven
repository.

If you are looking to populate your own repository with dependencies, then
look at adopting IvyRoundup (http://code.google.com/p/ivyroundup/) as a
starting point.

Josh

On Tue, Aug 4, 2009 at 7:10 AM, Paul Grenyer <paul.grenyer@gmail.com> wrote:

> Hi
>
> I'd really appreciate it if someone could help me out with this..
>
> ---------- Forwarded message ----------
> From: Paul Grenyer <paul.grenyer@gmail.com>
> Date: Sun, Aug 2, 2009 at 7:30 PM
> Subject: Depedencies in shared repository
> To: ivy-user@ant.apache.org
>
>
> Hi All
>
> I've created a shared repository with the following settings file:
>
> <ivysettings>
>        <resolvers>
>                <filesystem name="local-repository">
>                        <artifact
> pattern="${src.repo.dir}/[organisation].[artifact]-[revision].[ext]"/>
>                        <ivy pattern="${src.repo.dir}/ivy.xml"/>
>                </filesystem>
>                <filesystem name="shared-repository">
>                        <artifact
>
> pattern="${dest.repo.dir}/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"/>
>                </filesystem>
>        </resolvers>
> </ivysettings>
>
> and the following ant script:
>
> <project name="ivy-repository" default="create-repo"
> xmlns:ivy="antlib:org.apache.ivy.ant">
>        <property name="from.resolver" value="local-repository"/>
>        <property name="to.resolver" value="shared-repository"/>
>
>        <property name="src.repo.dir" value="C:/Temp/repo" />
>        <property name="dest.repo.dir" value="C:/Program Files (x86)/Apache
> Software Foundation/Apache2.2/htdocs/ivy" />
>
>        <target name="init-ivy" >
>        <ivy:settings id="repo.settings"    file="ivysettings-repo.xml"/>
>    </target>
>
>    <target name = "create-repo" depends = "init-ivy">
>        <ivy:install    settingsRef="repo.settings"
>                                        organisation="net.purpletube"
>                                        module="goodmusic"
>                                        revision="0.1"
>                                        from="${from.resolver}"
>                                        to="${to.resolver}"
>                                        overwrite = "true"
>                                        haltonfailure = "yes"/>
>    </target>
> </project>
>
> So all I have to do is put my net.prurpletube.goodmusic-0.1.jar in
> C:/Temp/repo and run the ant script and haypresto I have a shared
> repsoitory. Hopefully I've done the correct thing so far?
>
> Now I want to setup dependancies for
> net.prurpletube.goodmusic-0.1.jar, so that when Ivy downlaods it its
> dependancies come too, but I can't work out how to do it.
>
> Can anyone help me?
>
> --
> Thanks
> Paul
>
> Paul Grenyer
> e: paul.grenyer@gmail.com
> w: http://www.marauder-consulting.co.uk
> b: paulgrenyer.blogspot.com
>
>
>
> --
> Thanks
> Paul
>
> Paul Grenyer
> e: paul.grenyer@gmail.com
> w: http://www.marauder-consulting.co.uk
> b: paulgrenyer.blogspot.com
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message