On 1/12/07, Jacob Grydholt Jensen <[EMAIL PROTECTED]> wrote:
Hi,
I have a basic ivy configuration:
<ivyconf>
<conf defaultResolver="bk-repository"
defaultConflictManager="all" /> <!-- in order to
get all
revisions without any eviction -->
<resolvers>
<filesystem name="bk-repository">
<ivy pattern="${dest.repo.dir
}/[organisation]/[module]/ivys/ivy-[revision].xml"/>
<artifact
pattern="${dest.repo.dir
}/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"/>
</filesystem>
</resolvers>
</ivyconf>
The cache is then set to .ivy in the user's home directory. I would
like to create an ant-target that deletes the cache directory. Can I
get to a property that will point to the default cache-location?
No, unfortunately the cache location is not stored in an ant property. So
the solution is to do what john recommend. You can also submit an
improvement in jira.
- Xavier
I
have run the configure task with ant -v and got the following snippet:
[...]
ivy-configure:
parsing buildfile
jar:file:/T:/apache-ant-1.6.5/lib/ivy-
1.4.1.jar!/fr/jayasoft/ivy/ant/antlib.xml
with URI = jar:file:/T:/apache-ant-1.6.5/lib/ivy-
1.4.1.jar!/fr/jayasoft/ivy/ant/antlib.xml
Loading jar:file:/T:/apache-ant-1.6.5/lib/ivy-
1.4.1.jar!/fr/jayasoft/ivy/ivy.properties
[ivy:configure] :: Ivy 1.4.1 - 20061109165313 :: http://ivy.jayasoft.org/::
[ivy:configure] jakarta commons httpclient not found: using jdk url
handling
[ivy:configure] :: configuring :: file =
L:\bookline\HEAD\ivy-config\ivy-conf-bookline.xml
[ivy:configure] no default ivy user dir defined: set to C:\Documents
and Settings\jajensen\.ivy
[ivy:configure] no default cache defined: set to C:\Documents and
Settings\jajensen\.ivy\cache
[ivy:configure] configuration done (78ms)
[ivy:configure] default cache: C:\Documents and
Settings\jajensen\.ivy\cache
[ivy:configure] default resolver: bookline-repository
[ivy:configure] -- 1 resolvers:
[ivy:configure] bookline-repository [file]
[...]
The used cache location is outputted, but I cannot tell whether ivy
stores the cache location somewhere.
Best regards,
Jacob Grydholt