Author: steve.ebersole(a)jboss.com
Date: 2009-06-22 18:00:05 -0400 (Mon, 22 Jun 2009)
New Revision: 16873
Modified:
core/branches/Branch_3_2/build.xml
core/branches/Branch_3_2/src/org/hibernate/Version.java
Log:
HHH-3781 - Echo version information to the console in main()
Modified: core/branches/Branch_3_2/build.xml
===================================================================
--- core/branches/Branch_3_2/build.xml 2009-06-22 21:58:45 UTC (rev 16872)
+++ core/branches/Branch_3_2/build.xml 2009-06-22 22:00:05 UTC (rev 16873)
@@ -575,7 +575,9 @@
<attribute name="Implementation-Title"
value="Hibernate3"/>
<attribute name="Implementation-Version"
value="${version.full}"/>
<attribute name="Implementation-Vendor"
value="hibernate.org"/>
+ <attribute name="Implementation-URL"
value="http://hibernate.org" />
<attribute name="Hibernate-Version"
value="${version.full}"/>
+ <attribute name="Main-Class"
value="org.hibernate.Version" />
</manifest>
</jar>
Modified: core/branches/Branch_3_2/src/org/hibernate/Version.java
===================================================================
--- core/branches/Branch_3_2/src/org/hibernate/Version.java 2009-06-22 21:58:45 UTC (rev
16872)
+++ core/branches/Branch_3_2/src/org/hibernate/Version.java 2009-06-22 22:00:05 UTC (rev
16873)
@@ -32,4 +32,8 @@
public static String getVersionString() {
return "3.2.8-SNAPSHOT";
}
+
+ public static void main(String[] args) {
+ System.out.println( "Hibernate version " + getVersionString() );
+ }
}
Show replies by date