MPXDOC-163 : Dependencies comment (MPXDOC-129) feature disappeared.
Tests are re-enabled. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@267528 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
0280b47290
commit
bb7609f89c
6 files changed
+21
-18
No files matched your search
@@ -15,40 +15,30 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<project default="testPlugin"
|
||||
xmlns:util="jelly:util"
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:assert="assert"
|
||||
xmlns:doc="doc"
|
||||
xmlns:x="jelly:xml">
|
||||
|
||||
<project default="testPlugin" xmlns:util="jelly:util" xmlns:j="jelly:core" xmlns:assert="assert" xmlns:doc="doc" xmlns:x="jelly:xml">
|
||||
<goal name="testPlugin" prereqs="clean,xdoc:generate-from-pom, dependenciesTest"/>
|
||||
|
||||
<goal name="dependenciesTest">
|
||||
<j:set var="depXmlPath" value="${maven.gen.docs}/dependencies.xml"/>
|
||||
<assert:assertFileExists file="${depXmlPath}"/>
|
||||
<util:file var="depXmlFile" name="${depXmlPath}"/>
|
||||
<x:parse var="depXmlDom" xml="${depXmlFile}"/>
|
||||
<!--
|
||||
<x:set var="headerComment" select="string($depXmlDom/document/body/section[@name='Dependencies']/table/thead/tr/th[5])"/>
|
||||
<assert:assertEquals expected="Comment" value="${headerComment}"/>
|
||||
<x:forEach var="tr" select="$depXmlDom/document/body/section[@name='Dependencies']/table/tbody/*">
|
||||
<x:set var="depName" select="string($tr/td[1])"/>
|
||||
<x:set var="comment" select="string($tr/td[5])"/>
|
||||
<j:if test="${depName=='dom4j'}">
|
||||
<echo>Checking comment for dependency dom4j</echo>
|
||||
<assert:assertEquals expected="Simple comment" value="${comment.trim()}"/>
|
||||
<echo>Checking comment for dependency dom4j</echo>
|
||||
<assert:assertEquals expected="Simple comment" value="${comment.trim()}"/>
|
||||
</j:if>
|
||||
<j:if test="${depName=='commons-jelly'}">
|
||||
<echo>Checking comment for dependency commons-jelly</echo>
|
||||
<assert:assertEquals expected="" value="${comment.trim()}"/>
|
||||
<echo>Checking comment for dependency commons-jelly</echo>
|
||||
<assert:assertEquals expected="" value="${comment.trim()}"/>
|
||||
</j:if>
|
||||
<j:if test="${depName=='velocity-dvsl'}">
|
||||
<echo>Checking comment for dependency velocity-dvsl</echo>
|
||||
<assert:assertEquals expected="" value="${comment.trim()}"/>
|
||||
<echo>Checking comment for dependency velocity-dvsl</echo>
|
||||
<assert:assertEquals expected="" value="${comment.trim()}"/>
|
||||
</j:if>
|
||||
</x:forEach>
|
||||
-->
|
||||
</goal>
|
||||
|
||||
</project>
|
||||
Reference in new issue
Block a user