Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<blockquote> <p>What I want to do is specify in my ivy.xml for each project that the Javadoc is published at some URL.</p> </blockquote> <p>I guess you should publish Javadoc's as any other artifacts and specify search pattern in ivysettings.xml. Example:</p> <pre><code>&lt;resolvers&gt; &lt;url name="repository"&gt; &lt;ivy pattern="${repository.url}/[module]/ivy-[revision].xml" /&gt; &lt;artifact pattern="${repository.url}/[module]/[artifact]-[revision].[ext]" /&gt; &lt;artifact pattern="${repository.url}/[module]/[artifact]-javadoc-[revision].[ext]" /&gt; &lt;/filesystem&gt; &lt;/resolvers&gt; </code></pre> <blockquote> <p>In the end, I want the following: Project A has javadoc publish at <a href="http://someurl/A/javadoc" rel="nofollow">http://someurl/A/javadoc</a> Project B is dependent on A and it's javadoc is published at <a href="http://someurl/B/javadoc" rel="nofollow">http://someurl/B/javadoc</a> In Project B's javadoc where is use classes from Project A, I want it to link to the Project A url.</p> </blockquote> <p>As far as you publish Javadoc as artifact, it has its own ivy.xml and you can declare dependency here:</p> <pre><code>&lt;ivy-module version="2.0"&gt; &lt;info organisation="yourorg" module="moduleB-javadoc" /&gt; &lt;dependencies&gt; &lt;dependency org="yourorg" name="moduleA-javadoc" /&gt; &lt;/dependencies&gt; &lt;/ivy-module&gt; </code></pre> <blockquote> <p>In my dependent projects I want to have Ivy resolve that dependency and provide it to a javadoc command in ant as arguments for the subtask.</p> </blockquote> <p>Describe javadoc artifact as dependency in dependent project's ivy.xml, then specify in your build.xml that ant javadoc task depends on target that performs and manipulate javadoc jar as you want (for details see ant documentation).</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload