You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by bg...@apache.org on 2007/02/19 09:52:52 UTC

svn commit: r509135 - /ibatis/trunk/java/mapper/mapper2/pom.xml

Author: bgoodin
Date: Mon Feb 19 00:52:52 2007
New Revision: 509135

URL: http://svn.apache.org/viewvc?view=rev&rev=509135
Log:
- updated pom.xml comments

Modified:
    ibatis/trunk/java/mapper/mapper2/pom.xml

Modified: ibatis/trunk/java/mapper/mapper2/pom.xml
URL: http://svn.apache.org/viewvc/ibatis/trunk/java/mapper/mapper2/pom.xml?view=diff&rev=509135&r1=509134&r2=509135
==============================================================================
--- ibatis/trunk/java/mapper/mapper2/pom.xml (original)
+++ ibatis/trunk/java/mapper/mapper2/pom.xml Mon Feb 19 00:52:52 2007
@@ -109,13 +109,20 @@
               <addClasspath>false</addClasspath>
             </manifest>
             <manifestEntries>
-            <!--
-            Need to find a way to specify a current date.
-            This appears to be a maven problem. Still looking for a
-            way to implement it. Apparently on it's way but not quite
-            here http://jira.codehaus.org/browse/MNG-1832
-            -->
-              <Build-On>${still.working.on.this}</Build-On>
+              <!--
+              Need a better way to specify a current date.
+              This is a problem in maven and the fix is on it's
+              way but not quite here http://jira.codehaus.org/browse/MNG-1832
+              current workaround is to add  -DbuildDate=`date +%Y-%m-%d` to
+              the call to maven.
+
+              Unix Example:
+              mvn -DbuildDate=`date +%Y-%m-%d` clean install
+
+              Windows Example:
+              none
+              -->
+              <Build-On>${env.buildDate}</Build-On>
             </manifestEntries>
             <manifestSections>
               <manifestSection>
@@ -173,7 +180,7 @@
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>maven-buildnumber-plugin</artifactId>
-        <version>0.9.5-SNAPSHOT</version>
+        <version>0.9.4</version>
         <executions>
           <execution>
             <phase>validate</phase>
@@ -216,12 +223,19 @@
           <dates>
             <date implementation="java.lang.String">2006-12-01</date>
             <!--
-            Need to find a way to specify a current date.
-            This appears to be a maven problem. Still looking for a
-            way to implement it. Apparently on it's way but not quite
-            here http://jira.codehaus.org/browse/MNG-1832
+            Need a better way to specify a current date.
+            This is a problem in maven and the fix is on it's
+            way but not quite here http://jira.codehaus.org/browse/MNG-1832
+            current workaround is to add  -DbuildDate=`date +%Y-%m-%d` to
+            the call to maven.
+
+            Unix Example:
+            mvn -DbuildDate=`date +%Y-%m-%d` clean install
+
+            Windows Example:
+            none
             -->
-            <date implementation="java.lang.String">2007-02-18</date>
+            <date implementation="java.lang.String">${env.buildDate}</date>
           </dates>
           <dateFormat>yyyy-MM-dd</dateFormat>
         </configuration>