On Wed, Mar 12, 2008 at 6:31 PM, Brown, Carlton
<[EMAIL PROTECTED]> wrote:
>
>  > -----Original Message-----
>  > From: Xavier Hanin [mailto:[EMAIL PROTECTED]
>  > Sent: Wednesday, March 12, 2008 1:16 PM
>  > To: [email protected]
>  > Subject: Re: Cache basedir attribute no longer valid in beta 2 ?
>  >
>  > On Wed, Mar 12, 2008 at 5:41 PM, Brown, Carlton
>  > <[EMAIL PROTECTED]> wrote:
>  > > Since I began using beta 2, Ivy no longer uses the cache
>  > directory I
>  > > specified in my settings file, which looks like this:
>  > >
>  > >  <ivysettings>
>  > >  <settings defaultResolver="internal-with-m2-fallback"
>  > >  checkUpToDate="true" />
>  > >  <cache basedir="c:\ivy2\cache" />
>  > >  <!-- etcetera-->
>  > >
>  > >  Now my default cache is.ivy2/cache in users's home.
>  > C:\ivy2\cache is
>  > >  never referenced or changed.
>  > >
>  > >  So, I look at the documentation and apparently <cache> is
>  > no longer a
>  > > child element of <ivysettings> as of beta-2, it now goes
>  > under <caches>.
>  > >  OK, no problem.   I change the settings to:
>  > >
>  > >  <ivysettings>
>  > >  <settings defaultResolver="internal-with-m2-fallback"
>  > >  checkUpToDate="true" />
>  > >  <caches>
>  > >     <cache basedir="c:\ivy2\cache" />
>  > >  </caches>
>  > >  <!-- etcetera-->
>  > >
>  > >  Still does not work!
>  > >
>  > >  So, I decide something is wrong with basedir and I go with
>  > the new
>  > > settings.
>  > >  <caches defaultCacheDir="c:\tools\ivy2\cache" />
>  > >
>  > >  Finally, success.   So is the documentation out of date,
>  > or is it a bug?
>  >
>  > Sorry for the inconvenience with migration, the new cache
>  > implementation and settings is still a bit experimental.
>  > About the documentation, it should be up to date. The cache
>  > element under caches allow to define one particular cache,
>  > while caches is used both as a container element and to
>  > specify default values for all caches.
>  >
>  > I think the documentation reflects this.
>
>  No worries, I think the new scheme is better than the old one, but I'm
>  not sure this is the correct answer to my question about the basedir
>  attribute.  The documentation says the basedir attribute is supported.
>  But in my testing it doesn't work, even when nesting <cache> as a child
>  of <caches>.
It should work (defining the basedir of a single cache instance, not
all caches like defaultCacheDir). What error message do you get?

Xavier

> This means there is a problem with either the
>  documentation, the implementation, or my testing.  I just want to
>  understand which one is the answer.<HTML><BODY><P><hr size=1></P>
>
>
> <P><STRONG>
>  ====================================================
>  This message contains PRIVILEGED and CONFIDENTIAL
>  information that is intended only for use by the
>  named recipient. If you are not the named recipient,
>  any disclosure, dissemination, or action based on
>  the contents of this message is prohibited. In such
>  case please notify us and destroy and delete all
>  copies of this transmission.  Thank you.
>  ====================================================
>  </STRONG></P></BODY></HTML>
>



-- 
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/

Reply via email to