You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by jl...@apache.org on 2006/03/04 15:23:12 UTC

svn commit: r383116 - in /geronimo/trunk/modules/system: pom.xml src/filtered-resources/

Author: jlaskowski
Date: Sat Mar  4 06:23:10 2006
New Revision: 383116

URL: http://svn.apache.org/viewcvs?rev=383116&view=rev
Log:
Generate geronimo-version.properties using Maven2 Antrun plugin

Note: I'm not sure if it's in a correct phase, but it works

Removed:
    geronimo/trunk/modules/system/src/filtered-resources/
Modified:
    geronimo/trunk/modules/system/pom.xml

Modified: geronimo/trunk/modules/system/pom.xml
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/system/pom.xml?rev=383116&r1=383115&r2=383116&view=diff
==============================================================================
--- geronimo/trunk/modules/system/pom.xml (original)
+++ geronimo/trunk/modules/system/pom.xml Sat Mar  4 06:23:10 2006
@@ -1,19 +1,19 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!--
-
-    Copyright 2006 The Apache Software Foundation
-
-    Licensed under the Apache License, Version 2.0 (the "License");
-    you may not use this file except in compliance with the License.
-    You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
+  
+  Copyright 2006 The Apache Software Foundation
+  
+  Licensed under the Apache License, Version 2.0 (the "License");
+  you may not use this file except in compliance with the License.
+  You may obtain a copy of the License at
+  
+  http://www.apache.org/licenses/LICENSE-2.0
+  
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
 -->
 
 <!-- $Rev$ $Date$ -->
@@ -30,14 +30,8 @@
   <version>${geronimoVersion}</version>
   <packaging>jar</packaging>
   <name>Geronimo :: System</name>
-  
+
   <build>
-    <resources>
-      <resource>
-        <directory>src/filtered-resources</directory>
-        <filtering>true</filtering>
-      </resource>
-    </resources>
     <testResources>
       <testResource>
         <directory>src/test-data</directory>
@@ -51,6 +45,33 @@
         <configuration>
           <forkMode>pertest</forkMode>
         </configuration>
+      </plugin>
+      <plugin>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>process-resources</phase>
+            <configuration>
+              <tasks>
+                <tstamp>
+                  <format property="build.date" pattern="yyyy.MM.dd" />
+                  <format property="build.time" pattern="HH:mm:ss.SSSZ" />
+                  <format property="build.year" pattern="yyyy" />
+                </tstamp>
+                <echo file="${basedir}/target/classes/org/apache/geronimo/system/serverinfo/geronimo-version.properties">
+##### Generated by Maven2 #### 
+version=${pom.version}
+build.date=${build.date}
+build.time=${build.time}
+copyright=Copyright (C) 2003-${build.year}, The Apache Software Foundation
+                </echo>
+              </tasks>
+            </configuration>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
       </plugin>
     </plugins>
   </build>