MPJAVADOC-24 fix with test
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115376 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
6d93b8de8e
commit
55e3994adc
5 files changed
+14
-4
No files matched your search
@@ -172,11 +172,12 @@
|
||||
bottom="${copyright}"
|
||||
stylesheetfile="${maven.javadoc.stylesheet}"
|
||||
additionalparam="${maven.javadoc.additionalparam}"
|
||||
useexternalfile="${maven.javadoc.useexternalfile}">
|
||||
useexternalfile="${maven.javadoc.useexternalfile}"
|
||||
sourcepath="${pom.build.sourceDirectory}">
|
||||
|
||||
<!-- sourceSet is set by the javadoc:check-needed function -->
|
||||
<ant:fileset refid="sourceSet" />
|
||||
|
||||
|
||||
<j:if test="${context.getVariable('maven.javadoc.source') != null}">
|
||||
<ant:setProperty name="source" value="${maven.javadoc.source}" />
|
||||
</j:if>
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
gump.xml
|
||||
*.log
|
||||
target
|
||||
targetdist
|
||||
dist
|
||||
target
|
||||
@@ -23,9 +23,11 @@
|
||||
</goal>
|
||||
|
||||
<goal name="test-javadoc">
|
||||
<delete dir="${maven.build.dir}/docs/apidocs" failonerror="false"/>
|
||||
<delete dir="${maven.build.dir}" failonerror="false"/>
|
||||
<attainGoal name="maven-javadoc-plugin:report"/>
|
||||
<assert:assertFileExists file="${maven.build.dir}/docs/apidocs/index.html"/>
|
||||
<!-- assert that doc-files are copied - Issue MPJAVADOC-24 -->
|
||||
<assert:assertFileExists file="${maven.build.dir}/docs/apidocs/org/apache/maven/doc-files/example.txt"/>
|
||||
</goal>
|
||||
|
||||
<goal name="test-javadoc-jar">
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
This an example
|
||||
@@ -0,0 +1,4 @@
|
||||
<html>
|
||||
<head></head>
|
||||
<body>Package documentation.<br/> <a href="doc-files/example.txt">Example</a></body>
|
||||
</html>
|
||||
Reference in new issue
Block a user