(1) What is is the difference between the ivy:publish task called from the
ant buildscript, and the "publications" element defined in the ivy.xml file
("module descriptor")? According to the docs, the publications element is
used to "declare artifacts to be published", whereas the ivy:publish task
actually publishes artifacts. But how are these two connected? Can they
conflict with one another? If they are connected, what are the best
practices for making them work nicely with one another? For example, here's
what I have so far:

ivy.xml
=====
<publications defaultconf="publish">
    <artifact name="[artifact]-[revision].[ext]"/>
</publications>

build.xml
======
<target name="publish">
    <ivy:publish>
        <artifacts pattern="dist/[artifact]-[revision].[ext]"/>
    </ivy:publish>
</target>

Am I doing it right?!?
-- 
View this message in context: 
http://old.nabble.com/ivy%3Apublish-vs-publications-tp32471368p32471368.html
Sent from the ivy-user mailing list archive at Nabble.com.

Reply via email to