This is really an ant question, not an ivy question (I say that for clarification, not to be annoying :-)
The simplest way would be to set some property "jar.published" in your jar task (via <property ...>) and then make your publish task conditional on this property being set (e.g., via <target name="publish" if="${jar.published}">). I might have the syntax details wrong but that's the gist of it. -Archie On Tue, Jan 20, 2009 at 4:31 PM, David Goblirsch < dgoblir...@interactivebrokers.com> wrote: > If I have no changes to my source code or ivy.xml, my build will do nothing > EXCEPT that the "publish" task still wants to push them to the local > repository. > In order to get the build to not fail, I have to set overwrite to "true". > > My guess is I am missing something here. My "publish" task depends on the > "jar" task since I want > to publish to my local repository any newly updated jar. But with no > changes, "compile" does nothing, > "jar" does nothing, but "publish" does anyway. How do you get the publish > task to > do nothing if the artifact and the ivy file have not changed?? > > Thanks. > > -- Archie L. Cobbs