You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bval.apache.org by co...@apache.org on 2012/02/23 22:49:03 UTC

[CONF] Apache BVal > Apache BVal Version Info

Space: Apache BVal (https://cwiki.apache.org/confluence/display/BeanValidation)
Page: Apache BVal Version Info (https://cwiki.apache.org/confluence/display/BeanValidation/Apache+BVal+Version+Info)


Edited by Matt Benson:
---------------------------------------------------------------------
h3. Command-line

To determine the BVal version and revision you are using, run the following command from a cmdline:
{noformat}
java -jar ./bval-core-0.1-incubating-SNAPSHOT.jar
{noformat}
Which should display the project version, svn revision and your local runtime environment, like:
{code}
Project: Apache BVal
Version: 0.1-incubating-SNAPSHOT
Revision: 943245

os.name: Mac OS X
os.version: 10.6.3
os.arch: x86_64

java.version: 1.6.0_17
java.vendor: Apple Inc.

java.class.path:
	./bval-core-0.1-incubating-SNAPSHOT.jar

user.dir: /Users/xxxxx/validation/apache-bval/trunk/bval-core/target
{code}


h3. Programmatic

For programmatic access, take a look at the public getters in:
{noformat}
bval-core/src/main/java/org/apache/bval/util/BValVersion.java
{noformat}
including the following, which will returns the strings above:
{code}
getName() == "Apache BVal"
getVersion() == "0.1-incubating-SNAPSHOT"
getRevision() == "943245"
{code}



Change your notification preferences: https://cwiki.apache.org/confluence/users/viewnotifications.action