Return-Path: Delivered-To: apmail-incubator-ivy-user-archive@locus.apache.org Received: (qmail 37760 invoked from network); 12 Jan 2007 13:06:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jan 2007 13:06:21 -0000 Received: (qmail 70614 invoked by uid 500); 12 Jan 2007 13:06:20 -0000 Delivered-To: apmail-incubator-ivy-user-archive@incubator.apache.org Received: (qmail 70597 invoked by uid 500); 12 Jan 2007 13:06:20 -0000 Mailing-List: contact ivy-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@incubator.apache.org Delivered-To: mailing list ivy-user@incubator.apache.org Received: (qmail 70556 invoked by uid 99); 12 Jan 2007 13:06:20 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jan 2007 05:06:20 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of llignhoj@gmail.com designates 64.233.166.182 as permitted sender) Received: from [64.233.166.182] (HELO py-out-1112.google.com) (64.233.166.182) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jan 2007 05:06:08 -0800 Received: by py-out-1112.google.com with SMTP id p76so410136pyb for ; Fri, 12 Jan 2007 05:05:47 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=NGdhBSl4SgkemnK7p2BfIb+z/Yp3c4teKMg0+QSGNPGs84CijYcIVjpPuq24An/crndhtojtD/xhW+66tnLAZaXaTL1H5KNNu1eVh7H1URlysDUBYR1gFPB275evZ0utqtv8sdgATuP8sxVHygSnmOFlZYFEShY5OkkvQMDDrng= Received: by 10.35.96.7 with SMTP id y7mr1123797pyl.1168607147086; Fri, 12 Jan 2007 05:05:47 -0800 (PST) Received: by 10.35.118.6 with HTTP; Fri, 12 Jan 2007 05:05:46 -0800 (PST) Message-ID: <49c77ae40701120505k3cc5809ewb612eb45bfeec4a8@mail.gmail.com> Date: Fri, 12 Jan 2007 22:05:47 +0900 From: "John Gill" To: ivy-user@incubator.apache.org Subject: Re: Getting to the default cache path in ant In-Reply-To: <56b162b60701120429t695eced2y7f876ae5eea46642@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_28792_29380835.1168607147015" References: <56b162b60701120429t695eced2y7f876ae5eea46642@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_28792_29380835.1168607147015 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Not sure if you can get a property to the cache location "out of the box", but I think this will work. If you specify the cache location in your ivyconf using an ant property (with I think is supported but I could be wrong), then you will be able to do it. Add this bit to your ivyconf keeping all the other stuff you have. And in your ant build file set the have the following: I haven't tried this, but it should work (assuming ivyconf knows about ant properties that is). I think the only problem you would have is if you are using ivyDE, as I don't know if and how ant properties defined in your build file would be passed to ivyDE. Maybe someone can explain that to me. On 1/12/07, Jacob Grydholt Jensen wrote: > > Hi, > > I have a basic ivy configuration: > > > defaultConflictManager="all" /> > > > > > pattern="${dest.repo.dir > }/[organisation]/[module]/[type]s/[artifact]-[revision].[ext]"/> > > > > > > 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 > -- Regards, John Gill ------=_Part_28792_29380835.1168607147015--