ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Grydholt Jensen" <grydh...@gmail.com>
Subject Getting to the default cache path in ant
Date Fri, 12 Jan 2007 12:29:23 GMT
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? 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

Mime
View raw message