[hibernate-commits] Hibernate SVN: r16896 - in core/branches/Branch_3_3/core: src/main/java/org/hibernate and 1 other directory.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Tue Jun 23 04:29:31 EDT 2009


Author: steve.ebersole at jboss.com
Date: 2009-06-23 04:29:31 -0400 (Tue, 23 Jun 2009)
New Revision: 16896

Modified:
   core/branches/Branch_3_3/core/pom.xml
   core/branches/Branch_3_3/core/src/main/java/org/hibernate/Version.java
Log:
HHH-3982 - Apply build version to org.hibernate.Version 


Modified: core/branches/Branch_3_3/core/pom.xml
===================================================================
--- core/branches/Branch_3_3/core/pom.xml	2009-06-23 07:23:22 UTC (rev 16895)
+++ core/branches/Branch_3_3/core/pom.xml	2009-06-23 08:29:31 UTC (rev 16896)
@@ -87,6 +87,32 @@
                 </executions>
             </plugin>
             <plugin>
+                <groupId>org.jboss.maven.plugins</groupId>
+                <artifactId>maven-injection-plugin</artifactId>
+                <version>1.0.0</version>
+                <executions>
+                    <execution>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>bytecode</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+                    <bytecodeInjections>
+                        <bytecodeInjection>
+                            <expression>${pom.version}</expression>
+                            <targetMembers>
+                            	<methodBodyReturn>
+                            	    <className>org.hibernate.Version</className>
+                            	    <methodName>getVersionString</methodName>>
+                            	</methodBodyReturn>
+                            </targetMembers>
+                        </bytecodeInjection>
+                    </bytecodeInjections>
+                </configuration>
+            </plugin>
+            <plugin>
                 <artifactId>maven-jar-plugin</artifactId>
                 <configuration>
                     <archive>

Modified: core/branches/Branch_3_3/core/src/main/java/org/hibernate/Version.java
===================================================================
--- core/branches/Branch_3_3/core/src/main/java/org/hibernate/Version.java	2009-06-23 07:23:22 UTC (rev 16895)
+++ core/branches/Branch_3_3/core/src/main/java/org/hibernate/Version.java	2009-06-23 08:29:31 UTC (rev 16896)
@@ -30,7 +30,7 @@
  */
 public class Version {
 	public static String getVersionString() {
-		return "3.3.2-SNAPSHOT";
+		return "[WORKING]";
 	}
 
 	public static void main(String[] args) {




More information about the hibernate-commits mailing list