Ant task to refresh IvyDE Eclipse libraries

2.1k views Asked by At

I use Ivy for dependency management with the IvyDE Eclipse plugin and I have dependent libraries that change quite frequently and Eclipse doesn't seem to refresh the libraries when I refresh the workspace.

<eclipse.refreshLocal depth="*" resource="/" />

Is there a way to get eclipse to refresh the Ivy libraries using an ant task, or refresh them upon a workspace refresh?

4

There are 4 answers

0
oers On

You could try to touch the ivy.xml.
This might trigger an update of ivy after a workspace refresh.

1
Spencer Kormos On

Can't you use Refresh or Resolve on the right-click menu for the "ivy.xml" Eclipse Library in the project?

0
Jake Toronto On

To add to oers' answer and Pat B's answer above, you would need to go to Window > Preferences > Ivy, and change the following preferences:

  • Set "On Eclipse startup" to "Trigger resolve", and
  • Set "On Ivy File Change" to "Trigger resolve"

These should do the trick, especially in combination with the "touch" suggestion that oers made in his answer.

enter image description here

0
Pat B On

You can go in the Windows -> Preference -> on Eclipse Startup and change to Trigger Refresh