geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r903823 - in /geronimo/external/trunk: tomcat-archetype/catalina/pom.xml tomcat-parent-7.0.0/catalina/pom.xml
Date Wed, 27 Jan 2010 20:37:34 GMT
Author: gawor
Date: Wed Jan 27 20:37:34 2010
New Revision: 903823

URL: http://svn.apache.org/viewvc?rev=903823&view=rev
Log:
Fill-in ServerInfo.properties correctly

Modified:
    geronimo/external/trunk/tomcat-archetype/catalina/pom.xml
    geronimo/external/trunk/tomcat-parent-7.0.0/catalina/pom.xml

Modified: geronimo/external/trunk/tomcat-archetype/catalina/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/external/trunk/tomcat-archetype/catalina/pom.xml?rev=903823&r1=903822&r2=903823&view=diff
==============================================================================
--- geronimo/external/trunk/tomcat-archetype/catalina/pom.xml (original)
+++ geronimo/external/trunk/tomcat-archetype/catalina/pom.xml Wed Jan 27 20:37:34 2010
@@ -79,9 +79,38 @@
                 <configuration>
                     <instructions>                        
                         <Import-Package>javax.servlet.resources,javax.servlet.jsp.resources,*</Import-Package>
+                        <Include-Resource>
+                            {maven-resources},
+                            org/apache/catalina/util/ServerInfo.properties=target/classes/org/apache/catalina/util/ServerInfo.properties
+                        </Include-Resource>
                     </instructions>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                    <executions>
+                        <execution>
+                        <phase>process-resources</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <tstamp>
+                                    <format property="TODAY" pattern="MMM d yyyy" locale="en"/>
+                                    <format property="TSTAMP" pattern="hh:mm:ss"/>
+                                </tstamp>
+                                <replace file="target/classes/org/apache/catalina/util/ServerInfo.properties">
+                                    <replacefilter token="@VERSION@" value="${version}"/>
+                                    <replacefilter token="@VERSION_NUMBER@" value="${version}"/>
+                                    <replacefilter token="@VERSION_BUILT@" value="${TODAY}
${TSTAMP}"/>
+                                </replace>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
     

Modified: geronimo/external/trunk/tomcat-parent-7.0.0/catalina/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/external/trunk/tomcat-parent-7.0.0/catalina/pom.xml?rev=903823&r1=903822&r2=903823&view=diff
==============================================================================
--- geronimo/external/trunk/tomcat-parent-7.0.0/catalina/pom.xml (original)
+++ geronimo/external/trunk/tomcat-parent-7.0.0/catalina/pom.xml Wed Jan 27 20:37:34 2010
@@ -75,9 +75,38 @@
                 <configuration>
                     <instructions>                        
                         <Import-Package>javax.servlet.resources,javax.servlet.jsp.resources,*</Import-Package>
+                        <Include-Resource>
+                            {maven-resources},
+                            org/apache/catalina/util/ServerInfo.properties=target/classes/org/apache/catalina/util/ServerInfo.properties
+                        </Include-Resource>
                     </instructions>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                    <executions>
+                        <execution>
+                        <phase>process-resources</phase>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                        <configuration>
+                            <tasks>
+                                <tstamp>
+                                    <format property="TODAY" pattern="MMM d yyyy" locale="en"/>
+                                    <format property="TSTAMP" pattern="hh:mm:ss"/>
+                                </tstamp>
+                                <replace file="target/classes/org/apache/catalina/util/ServerInfo.properties">
+                                    <replacefilter token="@VERSION@" value="${version}"/>
+                                    <replacefilter token="@VERSION_NUMBER@" value="${version}"/>
+                                    <replacefilter token="@VERSION_BUILT@" value="${TODAY}
${TSTAMP}"/>
+                                </replace>
+                            </tasks>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
     



Mime
View raw message