From a7badd88b151db49d56ce68b51a13b84b1cdddbf Mon Sep 17 00:00:00 2001 From: dion Date: Fri, 10 Oct 2003 00:04:08 +0000 Subject: [PATCH] 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 --- faq/plugin.jelly | 128 ++++++++++++++++++----------- faq/plugin.properties | 5 ++ faq/src/plugin-test/.cvsignore | 2 + faq/src/plugin-test/maven.xml | 26 ++++++ faq/src/plugin-test/project.xml | 43 ++++++++++ faq/src/plugin-test/xdocs/faq.fml | 42 ++++++++++ faq/src/plugin-test/xdocs/faq2.fml | 42 ++++++++++ 7 files changed, 242 insertions(+), 46 deletions(-) create mode 100644 faq/plugin.properties create mode 100644 faq/src/plugin-test/.cvsignore create mode 100644 faq/src/plugin-test/maven.xml create mode 100644 faq/src/plugin-test/project.xml create mode 100644 faq/src/plugin-test/xdocs/faq.fml create mode 100644 faq/src/plugin-test/xdocs/faq2.fml diff --git a/faq/plugin.jelly b/faq/plugin.jelly index f278cda0..45a46fe1 100644 --- a/faq/plugin.jelly +++ b/faq/plugin.jelly @@ -5,58 +5,71 @@ xmlns:util="jelly:util" xmlns:x="jelly:xml" xmlns:ant="jelly:ant" - xmlns:doc="doc"> + xmlns:define="jelly:define" + xmlns:doc="doc" + xmlns:faq="faq"> - - - + - - - + + + - - - + + + + - - + + + + + + + - - - - + + + + + - - - - - - - - - - - - - + + + + + + + + - - - - - - + - + + + + + + + + + + + + + Generating ${outFile} from ${faqFile} + + + + + + + @@ -102,8 +115,31 @@ - - + + + + + + + + + + + + + + + + + + + + diff --git a/faq/plugin.properties b/faq/plugin.properties new file mode 100644 index 00000000..48a4e42d --- /dev/null +++ b/faq/plugin.properties @@ -0,0 +1,5 @@ +# Where source *.fml files are looked for +maven.faq.src=${basedir}/xdocs + +# Destination directory where output xdocs file are produced +maven.faq.dest=${maven.build.dir}/generated-xdocs diff --git a/faq/src/plugin-test/.cvsignore b/faq/src/plugin-test/.cvsignore new file mode 100644 index 00000000..4e1b955e --- /dev/null +++ b/faq/src/plugin-test/.cvsignore @@ -0,0 +1,2 @@ +*.log +target diff --git a/faq/src/plugin-test/maven.xml b/faq/src/plugin-test/maven.xml new file mode 100644 index 00000000..3135411a --- /dev/null +++ b/faq/src/plugin-test/maven.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + ${expectedFile} not generated + + + + + + ${expectedFile} not generated + + + + \ No newline at end of file diff --git a/faq/src/plugin-test/project.xml b/faq/src/plugin-test/project.xml new file mode 100644 index 00000000..c85d096d --- /dev/null +++ b/faq/src/plugin-test/project.xml @@ -0,0 +1,43 @@ + + + + 3 + test-maven-faq-plugin + Test project for Maven Faq Plugin + maven + 1.0-SNAPSHOT + + Apache Software Foundation + http://www.apache.org/ + http://maven.apache.org/images/jakarta-logo-blue.gif + + 2001 + org.apache.maven + http://maven.apache.org/images/maven.jpg + Test for Maven Faq plugin + Test for Maven Faq plugin + http://maven.apache.org/reference/plugins/faq/ + /www/maven.apache.org/reference/plugins/faq/ + + scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/faq/ + http://cvs.apache.org/viewcvs/maven/src/plugins-build/faq/ + + + + dIon Gillard + dion + dion@multitask.com.au + Multitask Consulting + + Documentation + + + + + + + + + maven-faq-plugin + + diff --git a/faq/src/plugin-test/xdocs/faq.fml b/faq/src/plugin-test/xdocs/faq.fml new file mode 100644 index 00000000..786f6a44 --- /dev/null +++ b/faq/src/plugin-test/xdocs/faq.fml @@ -0,0 +1,42 @@ + + + + + General + + + + What is Foo? + + +

some markup goes here

+ + some source code + +

some markup goes here

+
+
+ + + + What is Bar? + + +

some markup goes here

+
+
+
+ + + Installation + + + + How do I install Foo? + + +

some markup goes here

+
+
+
+
\ No newline at end of file diff --git a/faq/src/plugin-test/xdocs/faq2.fml b/faq/src/plugin-test/xdocs/faq2.fml new file mode 100644 index 00000000..786f6a44 --- /dev/null +++ b/faq/src/plugin-test/xdocs/faq2.fml @@ -0,0 +1,42 @@ + + + + + General + + + + What is Foo? + + +

some markup goes here

+ + some source code + +

some markup goes here

+
+
+ + + + What is Bar? + + +

some markup goes here

+
+
+
+ + + Installation + + + + How do I install Foo? + + +

some markup goes here

+
+
+
+
\ No newline at end of file