removed external dependency so that OpenJPAVersion can be run with just the openjpa jar in the classpath

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@477414 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2006-11-20 23:54:16 +00:00
parent 32ced33fd5
commit 3fdf607c58
1 changed files with 1 additions and 3 deletions

View File

@ -20,8 +20,6 @@ import java.io.InputStream;
import java.util.Properties;
import java.util.StringTokenizer;
import org.apache.commons.lang.StringUtils;
/**
* This class contains version information for OpenJPA. It uses
* Ant's filter tokens to convert the template into a java
@ -43,7 +41,7 @@ public class OpenJPAVersion {
static {
Package pack = OpenJPAVersion.class.getPackage();
String vers = pack == null ? null : pack.getImplementationVersion();
if (StringUtils.isEmpty(vers))
if (vers == null || "".equals(vers.trim()))
vers = "0.0.0";
VERSION_NUMBER = vers;