tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1222888 - in /tomcat/sandbox/trunk-mvn-build: pom.xml tomcat-webapps/docs/pom.xml
Date Fri, 23 Dec 2011 23:43:17 GMT
Author: olamy
Date: Fri Dec 23 23:43:17 2011
New Revision: 1222888

URL: http://svn.apache.org/viewvc?rev=1222888&view=rev
Log:
version and build-date parameters passed to xsl transformation

Modified:
    tomcat/sandbox/trunk-mvn-build/pom.xml
    tomcat/sandbox/trunk-mvn-build/tomcat-webapps/docs/pom.xml

Modified: tomcat/sandbox/trunk-mvn-build/pom.xml
URL: http://svn.apache.org/viewvc/tomcat/sandbox/trunk-mvn-build/pom.xml?rev=1222888&r1=1222887&r2=1222888&view=diff
==============================================================================
--- tomcat/sandbox/trunk-mvn-build/pom.xml (original)
+++ tomcat/sandbox/trunk-mvn-build/pom.xml Fri Dec 23 23:43:17 2011
@@ -135,6 +135,12 @@
           <extensions>true</extensions>
         </plugin>
 
+        <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>buildnumber-maven-plugin</artifactId>
+          <version>1.0</version>
+        </plugin>
+
       </plugins>
     </pluginManagement>
   </build>

Modified: tomcat/sandbox/trunk-mvn-build/tomcat-webapps/docs/pom.xml
URL: http://svn.apache.org/viewvc/tomcat/sandbox/trunk-mvn-build/tomcat-webapps/docs/pom.xml?rev=1222888&r1=1222887&r2=1222888&view=diff
==============================================================================
--- tomcat/sandbox/trunk-mvn-build/tomcat-webapps/docs/pom.xml (original)
+++ tomcat/sandbox/trunk-mvn-build/tomcat-webapps/docs/pom.xml Fri Dec 23 23:43:17 2011
@@ -49,6 +49,26 @@
       </plugin>
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
+        <artifactId>buildnumber-maven-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>validate</phase>
+            <goals>
+              <goal>create</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <doCheck>false</doCheck>
+          <doUpdate>false</doUpdate>
+          <format>{0,date,MMM d yyyy}</format>
+          <items>
+            <item>timestamp</item>
+          </items>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
         <artifactId>xml-maven-plugin</artifactId>
         <version>1.0</version>
         <executions>
@@ -76,6 +96,16 @@
                   <targetExtension>.html</targetExtension>
                 </fileMapper>
               </fileMappers>
+              <parameters>
+                <parameter>
+                  <name>version</name>
+                  <value>${project.version}</value>
+                </parameter>
+                <parameter>
+                  <name>build-date</name>
+                  <value>${buildNumber}</value>
+                </parameter>
+              </parameters>
             </transformationSet>
             <transformationSet>
               <dir>src/main/docs/appdev</dir>
@@ -92,6 +122,16 @@
                   <targetExtension>.html</targetExtension>
                 </fileMapper>
               </fileMappers>
+              <parameters>
+                <parameter>
+                  <name>version</name>
+                  <value>${project.version}</value>
+                </parameter>
+                <parameter>
+                  <name>build-date</name>
+                  <value>${buildNumber}</value>
+                </parameter>
+              </parameters>
             </transformationSet>
             <transformationSet>
               <dir>src/main/docs/funcspecs</dir>
@@ -108,6 +148,16 @@
                   <targetExtension>.html</targetExtension>
                 </fileMapper>
               </fileMappers>
+              <parameters>
+                <parameter>
+                  <name>version</name>
+                  <value>${project.version}</value>
+                </parameter>
+                <parameter>
+                  <name>build-date</name>
+                  <value>${buildNumber}</value>
+                </parameter>
+              </parameters>
             </transformationSet>
             <transformationSet>
               <dir>src/main/docs/config</dir>
@@ -124,6 +174,16 @@
                   <targetExtension>.html</targetExtension>
                 </fileMapper>
               </fileMappers>
+              <parameters>
+                <parameter>
+                  <name>version</name>
+                  <value>${project.version}</value>
+                </parameter>
+                <parameter>
+                  <name>build-date</name>
+                  <value>${buildNumber}</value>
+                </parameter>
+              </parameters>
             </transformationSet>
             <transformationSet>
               <dir>src/main/docs/architecture</dir>
@@ -140,6 +200,16 @@
                   <targetExtension>.html</targetExtension>
                 </fileMapper>
               </fileMappers>
+              <parameters>
+                <parameter>
+                  <name>version</name>
+                  <value>${project.version}</value>
+                </parameter>
+                <parameter>
+                  <name>build-date</name>
+                  <value>${buildNumber}</value>
+                </parameter>
+              </parameters>
             </transformationSet>
             <transformationSet>
               <dir>src/main/docs/tribes</dir>
@@ -156,6 +226,16 @@
                   <targetExtension>.html</targetExtension>
                 </fileMapper>
               </fileMappers>
+              <parameters>
+                <parameter>
+                  <name>version</name>
+                  <value>${project.version}</value>
+                </parameter>
+                <parameter>
+                  <name>build-date</name>
+                  <value>${buildNumber}</value>
+                </parameter>
+              </parameters>
             </transformationSet>
           </transformationSets>
         </configuration>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message