Apply MAVEN-904 with some changes for reporting.
Add a test project to test new functionality. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114180 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
f0ce20ec34
commit
a7badd88b1
7 files changed
+242
-46
No files matched your search
@@ -0,0 +1,2 @@
|
||||
*.log
|
||||
target
|
||||
@@ -0,0 +1,26 @@
|
||||
<project xmlns:util="jelly:util"
|
||||
xmlns:j="jelly:core">
|
||||
|
||||
<goal name="testPlugin" prereqs="clean,test-faq">
|
||||
<!-- bad xdoc leaves files open <attainGoal name="clean"/> -->
|
||||
</goal>
|
||||
|
||||
<goal name="test-faq">
|
||||
<attainGoal name="site"/>
|
||||
|
||||
<j:set var="expectedFile"
|
||||
value="${maven.docs.dest}/faq.html"/>
|
||||
<util:file var="file" name="${expectedFile}" />
|
||||
<j:if test="${!(file.exists())}">
|
||||
<fail>${expectedFile} not generated</fail>
|
||||
</j:if>
|
||||
|
||||
<j:set var="expectedFile"
|
||||
value="${maven.docs.dest}/faq2.html"/>
|
||||
<util:file var="file" name="${expectedFile}" />
|
||||
<j:if test="${!(file.exists())}">
|
||||
<fail>${expectedFile} not generated</fail>
|
||||
</j:if>
|
||||
|
||||
</goal>
|
||||
</project>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project>
|
||||
<pomVersion>3</pomVersion>
|
||||
<id>test-maven-faq-plugin</id>
|
||||
<name>Test project for Maven Faq Plugin</name>
|
||||
<groupId>maven</groupId>
|
||||
<currentVersion>1.0-SNAPSHOT</currentVersion>
|
||||
<organization>
|
||||
<name>Apache Software Foundation</name>
|
||||
<url>http://www.apache.org/</url>
|
||||
<logo>http://maven.apache.org/images/jakarta-logo-blue.gif</logo>
|
||||
</organization>
|
||||
<inceptionYear>2001</inceptionYear>
|
||||
<package>org.apache.maven</package>
|
||||
<logo>http://maven.apache.org/images/maven.jpg</logo>
|
||||
<description>Test for Maven Faq plugin</description>
|
||||
<shortDescription>Test for Maven Faq plugin</shortDescription>
|
||||
<url>http://maven.apache.org/reference/plugins/faq/</url>
|
||||
<siteDirectory>/www/maven.apache.org/reference/plugins/faq/</siteDirectory>
|
||||
<repository>
|
||||
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/faq/</connection>
|
||||
<url>http://cvs.apache.org/viewcvs/maven/src/plugins-build/faq/</url>
|
||||
</repository>
|
||||
<developers>
|
||||
<developer>
|
||||
<name>dIon Gillard</name>
|
||||
<id>dion</id>
|
||||
<email>dion@multitask.com.au</email>
|
||||
<organization>Multitask Consulting</organization>
|
||||
<roles>
|
||||
<role>Documentation</role>
|
||||
</roles>
|
||||
</developer>
|
||||
</developers>
|
||||
|
||||
<build>
|
||||
</build>
|
||||
|
||||
<reports>
|
||||
<report>maven-faq-plugin</report>
|
||||
</reports>
|
||||
</project>
|
||||
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<faqs title="Frequently Asked Questions">
|
||||
|
||||
<part id="general">
|
||||
<title>General</title>
|
||||
|
||||
<faq id="whats-foo">
|
||||
<question>
|
||||
What is Foo?
|
||||
</question>
|
||||
<answer>
|
||||
<p>some markup goes here</p>
|
||||
|
||||
<source>some source code</source>
|
||||
|
||||
<p>some markup goes here</p>
|
||||
</answer>
|
||||
</faq>
|
||||
|
||||
<faq id="whats-bar">
|
||||
<question>
|
||||
What is Bar?
|
||||
</question>
|
||||
<answer>
|
||||
<p>some markup goes here</p>
|
||||
</answer>
|
||||
</faq>
|
||||
</part>
|
||||
|
||||
<part id="install">
|
||||
<title>Installation</title>
|
||||
|
||||
<faq id="how-install">
|
||||
<question>
|
||||
How do I install Foo?
|
||||
</question>
|
||||
<answer>
|
||||
<p>some markup goes here</p>
|
||||
</answer>
|
||||
</faq>
|
||||
</part>
|
||||
</faqs>
|
||||
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<faqs title="Frequently Asked Questions">
|
||||
|
||||
<part id="general">
|
||||
<title>General</title>
|
||||
|
||||
<faq id="whats-foo">
|
||||
<question>
|
||||
What is Foo?
|
||||
</question>
|
||||
<answer>
|
||||
<p>some markup goes here</p>
|
||||
|
||||
<source>some source code</source>
|
||||
|
||||
<p>some markup goes here</p>
|
||||
</answer>
|
||||
</faq>
|
||||
|
||||
<faq id="whats-bar">
|
||||
<question>
|
||||
What is Bar?
|
||||
</question>
|
||||
<answer>
|
||||
<p>some markup goes here</p>
|
||||
</answer>
|
||||
</faq>
|
||||
</part>
|
||||
|
||||
<part id="install">
|
||||
<title>Installation</title>
|
||||
|
||||
<faq id="how-install">
|
||||
<question>
|
||||
How do I install Foo?
|
||||
</question>
|
||||
<answer>
|
||||
<p>some markup goes here</p>
|
||||
</answer>
|
||||
</faq>
|
||||
</part>
|
||||
</faqs>
|
||||
Reference in new issue
Block a user