sure, that's easy enough

Brett Porter wrote:
This will work for svn exports as well, so maybe the profile id could be tweaked to "without-svn"?

On 27/04/2009, at 10:20 PM, [email protected] wrote:

Author: jdcasey
Date: Mon Apr 27 12:20:40 2009
New Revision: 768943

URL: http://svn.apache.org/viewvc?rev=768943&view=rev
Log:
adding buildnumber profile for git builds.

Modified:
   maven/components/branches/maven-2.1.x/maven-core/pom.xml

Modified: maven/components/branches/maven-2.1.x/maven-core/pom.xml
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.1.x/maven-core/pom.xml?rev=768943&r1=768942&r2=768943&view=diff ==============================================================================
--- maven/components/branches/maven-2.1.x/maven-core/pom.xml (original)
+++ maven/components/branches/maven-2.1.x/maven-core/pom.xml Mon Apr 27 12:20:40 2009
@@ -267,5 +267,39 @@
        </plugins>
      </build>
    </profile>
+    <profile>
+      <id>buildnumber-git</id>
+      <activation>
+        <file>
+          <missing>.svn</missing>
+        </file>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>buildnumber-maven-plugin</artifactId>
+            <version>1.0-beta-1</version>
+            <executions>
+              <execution>
+                <phase>generate-resources</phase>
+                <goals>
+                  <goal>create</goal>
+                </goals>
+              </execution>
+            </executions>
+            <configuration>
+              <doCheck>false</doCheck>
+              <doUpdate>false</doUpdate>
+              <format>{0,date,yyyy-MM-dd_HH-mm}_{1}</format>
+              <items>
+                <item>timestamp</item>
+                <item>${user.name}</item>
+              </items>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
  </profiles>
</project>




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to