From: stephane m. <ste...@us...> - 2003-01-21 03:03:26
|
stephanemor 03/01/20 19:03:25 Modified: . maven.xml Added: . navigation.jelly Log: o Split the generation of the navigation to another file so that the main maven.xml file is readable. o Adapted the file to be used by Maven B8 Head Revision Changes Path 1.8 +19 -39 maven-plugins/maven.xml Index: maven.xml =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/maven.xml,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- maven.xml 11 Dec 2002 14:41:15 -0000 1.7 +++ maven.xml 21 Jan 2003 03:03:24 -0000 1.8 @@ -1,15 +1,11 @@ -<jj:project default="plugins:site" +<project default="plugins:site" xmlns:j="jelly:core" - xmlns:jj="jelly:jeez" xmlns:ant="jelly:ant" - xmlns:reactor="reactor" - xmlns:x="jelly:xml" - xmlns="dummy" - xmlns:m="maven"> + xmlns:maven="jelly:maven"> - <jj:goal name="plugins:clean"> + <goal name="plugins:clean"> - <reactor:execute + <maven:reactor basedir="${basedir}" glob="*/project.xml" goals="clean" @@ -17,11 +13,11 @@ ignoreFailures="true" /> - </jj:goal> + </goal> - <jj:goal name="plugins:site"> + <goal name="plugins:site"> - <reactor:execute + <maven:reactor basedir="${basedir}" glob="*/project.xml" goals="clean,site" @@ -29,11 +25,11 @@ ignoreFailures="true" /> - </jj:goal> + </goal> - <jj:goal name="plugins:site-deploy"> + <goal name="plugins:site-deploy"> - <reactor:execute + <maven:reactor basedir="${basedir}" glob="*/project.xml" goals="clean,site:deploy" @@ -41,9 +37,9 @@ ignoreFailures="true" /> - </jj:goal> + </goal> - <jj:goal name="generate-navigation"> + <goal name="generate-navigation"> <ant:echo>${basedir}/project.xml</ant:echo> <ant:fileScanner var="scanner"> <ant:fileset dir="${basedir}"> @@ -53,27 +49,11 @@ </ant:fileScanner> <ant:echo>Generating the navigation file...</ant:echo> - <j:file name="${maven.docs.src}/navigation.xml" prettyPrint="true"> - <project> - <title>${pom.name}</title> - <body> - <links> - <j:forEach var="file" items="${scanner.iterator()}"> - <item name="${file.parentFile.name}" href="/${file.parentFile.name}/index.html"/> - </j:forEach> - </links> - <menu name="Plugins"> - <j:forEach var="file" items="${scanner.iterator()}"> - <item name="${file.parentFile.name}" href="/${file.parentFile.name}/index.html"/> - </j:forEach> - </menu> - </body> - </project> - </j:file> - </jj:goal> - - <jj:preGoal name="site:generate"> - <jj:attainGoal name="generate-navigation"/> - </jj:preGoal> + <j:include uri="navigation.jelly" inherit="true"/> + </goal> -</jj:project> + <preGoal name="site"> + <attainGoal name="generate-navigation"/> + </preGoal> + +</project> 1.1 maven-plugins/navigation.jelly Index: navigation.jelly =================================================================== <?xml version="1.0" encoding="ISO-8859-1"?> <j:file name="xdocs/navigation.xml" prettyPrint="true" xmlns:j="jelly:core" xmlns="dummy"> <project> <title>${pom.name}</title> <body> <links> <j:forEach var="file" items="${scanner.iterator()}"> <item name="${file.parentFile.name}" href="/${file.parentFile.name}/index.html"/> </j:forEach> </links> <menu name="Plugins"> <j:forEach var="file" items="${scanner.iterator()}"> <item name="${file.parentFile.name}" href="/${file.parentFile.name}/index.html"/> </j:forEach> </menu> </body> </project> </j:file> |
From: Andy J. <and...@us...> - 2004-10-22 18:39:35
|
andy_jefferson 04/10/22 11:39:29 Modified: . maven.xml Added: . navigation.jelly Log: Reinstated old method of navigation generation Revision Changes Path 1.25 +14 -0 maven-plugins/maven.xml Index: maven.xml =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/maven.xml,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- maven.xml 1 Oct 2004 22:38:14 -0000 1.24 +++ maven.xml 22 Oct 2004 18:39:28 -0000 1.25 @@ -107,4 +107,18 @@ <preGoal name="xdoc:jelly-transform"> <attainGoal name="faq"/> </preGoal> + + <!-- Goal to generate the navigation.xml --> + <goal name="generate-navigation"> + <ant:echo>${basedir}/project.xml</ant:echo> + <ant:fileScanner var="scanner"> + <ant:fileset dir="${basedir}"> + <ant:include name="*/project.xml"/> + <ant:exlude name="${basedir}/project.xml"/> + </ant:fileset> + </ant:fileScanner> + + <ant:echo>Generating the navigation file...</ant:echo> + <j:include uri="navigation.jelly"/> + </goal> </project> 1.3 +18 -14 maven-plugins/navigation.jelly |