[ 
http://jira.codehaus.org/browse/MANTTASKS-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_112799
 ] 

Eric Hartmann commented on MANTTASKS-88:
----------------------------------------

Hi Herve,

Sorry, I did not see your comment before today.
I've just checked out the sources, applied the patch then deployed the jar to 
the lib directory of apache-ant.
Then I added this target to sample.build.xml :

  <target name="test-javadoc-deps" depends="initTaskDefs">
    <artifact:dependencies filesetId="maven-ant-tasks.dependency.fileset" 
javadocsFilesetId="javadocs.fileset">
      <pom refid="maven.project"/>
    </artifact:dependencies>

    <copy todir="target/files/javadocs">
      <fileset refid="javadocs.fileset"/>
    </copy>
  </target>

Then :

$ ant -f sample.build.xml test-javadoc-deps
Buildfile: sample.build.xml

initTaskDefs:

test-javadoc-deps:
[artifact:dependencies] Downloading: junit/junit/3.8.1/junit-3.8.1-javadoc.jar
[artifact:dependencies] Downloading: 
classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2-javadoc.jar
[artifact:dependencies] Downloading: 
jtidy/jtidy/4aug2000r7-dev/jtidy-4aug2000r7-dev-javadoc.jar
[artifact:dependencies] Downloading: ant/ant/1.6.2/ant-1.6.2-javadoc.jar
[artifact:dependencies] Downloading: 
xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2-javadoc.jar

BUILD SUCCESSFUL
Total time: 3 seconds

It seems to work for me.

I've experienced such behaviour working with maven-ant tasks when there is no 
dependencies (as there is no includes everythings in the repository is copied). 
I did not have test this case. I will do it right now and submit another patch 
if it's the problem.

> Add the ability to download javadoc dependencies 
> -------------------------------------------------
>
>                 Key: MANTTASKS-88
>                 URL: http://jira.codehaus.org/browse/MANTTASKS-88
>             Project: Maven 2.x Ant Tasks
>          Issue Type: Improvement
>          Components: dependencies task
>    Affects Versions: 2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.6, 2.0.7
>         Environment: Linux JDK 1.5
>            Reporter: Eric Hartmann
>            Assignee: Herve Boutemy
>            Priority: Minor
>         Attachments: patch.txt
>
>   Original Estimate: 0 minutes
>  Remaining Estimate: 0 minutes
>
> The ant task cannot download the javadocs files of dependencies.
> Here a small patch to add this enhancement the same way of downloading 
> sources.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to