If you have the current revision of the zip handy, you can use the Ivy
buildnumber Ant task and compare on that. Another option may be to check
the timestamp of the current zip and compare it to the timestamp of the
zip after it's resolved.

Depending on your build, you may also be able to use Ivy's triggers
(http://ant.apache.org/ivy/history/latest-milestone/settings/triggers.ht
ml) to do the unzip after the first download (the post-download-artifact
trigger). If I recall correctly, the trigger won't fire if you already
have the artifact in the cache.


-----Original Message-----
From: Leamon, Pat [mailto:pat.lea...@sensis.com.au] 
Sent: Tuesday, January 11, 2011 12:10 AM
To: ivy-user@ant.apache.org
Subject: Managing external tool with ivy


Hi,

  I'm trying to manage versions of a tool used as part of the build
process, not a dependency of the app itself.  I've packaged it into a
zip and put it into our local repository.  This zip is then resolved by
ivy and the appropriate version is downloaded, then the build itself
unpacks the zip ready for the tool to be used.

 

At the moment I'm doing an ant <condition/><filesmatch></condition> to
check if the tool zip has changed since the last build (I keep a copy
when I unpack it separately).  This saves me unpacking it every build,
but since the tool zip is large I still get a 5-10 second penalty for
the binary file comparison.

 

Is there any way I can get feedback from ivy to say if the dependency
has changed?

 

Thanks,

  Pat



Sensis. Helping you find, buy and sell.

www.sensis.com.au - www.yellow.com.au - www.whitepages.com.au -
www.citysearch.com.au - www.whereis.com.au

Sensis cares for the environment - think before you print.

This email and any attachments are intended only for the use of the
recipient and may be confidential and/or legally privileged. Sensis Pty
Ltd disclaims liability for any errors, omissions, viruses, loss and/or
damage arising from using, opening or transmitting this email. If you
are not the intended recipient you must not use, interfere with,
disclose, copy or retain this email and you should notify the sender
immediately by return email or by contacting Sensis Pty Ltd by telephone
on [+61 3 8653 5000]

Reply via email to