ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: get default ivy dir & local reposito
Date Thu, 01 Mar 2007 21:35:45 GMT

--- Xavier Hanin <xavier.hanin@gmail.com> wrote:

> On 3/1/07, Matt Benson <gudnabrsam@yahoo.com> wrote:
> >
> > RE the extension API, I was thinking along the
> lines
> > of writing a trigger that would try to get the
> current
> > IvySettings in use, etc., but can't see in the
> Javadoc
> > how such an idea could pan out.
> Ok, I see. The javadoc is far from being good, it's
> one of the area
> where Ivy still needs a lot of improvements. But
> your idea is
> interesting and you may manage to use the API quite
> easily. No need
> for a trigger or something like that, you can access
> the ivy instance
> by using the last configured ivy.instance reference
> in the Ant
> project, then you will get access to the IvySettings
> object on which
> you can call getDefaultIvyUserDir() for instance.
> Does it make sense?

Yep.
> 
> > I guess I'll just
> > accept that it's not possible for now.  As for
> having
> > the option for a dependent project to avoid the
> latest
> > integration version(s) of a dependency, I guess I
> > could just provide options to turn this on/off in
> my
> > dependenT project's buildfile?
> I'm not sure to have enough information about your
> build and your
> setup to answer. If you use only the default
> settings (I try to use
> settings instead of configuration to avoid confusion
> with module
> configurations), then you won't have much control on
> your resolvers.
> But you can still use the revision constraints
> expressed in your ivy
> files to define what you want. But if you want to
> turn this on/off
> from the build, it won't be of much help, unless you
> use ivy variables
> in your ivy files... An easier way would to be to
> switch of settings
> (one with your local repository, one without), but
> then you have to
> provide an ivyconf.xml.
> 

I'll keep it in mind, I'm just looking at a lot of
things together, so trying to keep the Ivy part simple
for now.  ;)

-Matt

> - Xavier
> 
> >
> > -Matt
> >
> > >
> > > - Xavier
> > > >
> > > > TIA,
> > > > Matt
> > > >
> > > >
> > > >
> > > >
> > >
> >
>
____________________________________________________________________________________
> > > > Want to start your own business?
> > > > Learn how on Yahoo! Small Business.
> > > > http://smallbusiness.yahoo.com/r-index
> > > >
> > >
> >
> >
> >
> >
> >
> >
>
____________________________________________________________________________________
> > Need Mail bonding?
> > Go to the Yahoo! Mail Q&A for great tips from
> Yahoo! Answers users.
> >
>
http://answers.yahoo.com/dir/?link=list&sid=396546091
> >
> 



 
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com

Mime
View raw message