mirror of https://github.com/apache/openjpa.git
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:
parent
32ced33fd5
commit
3fdf607c58
|
@ -20,8 +20,6 @@ import java.io.InputStream;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import java.util.StringTokenizer;
|
import java.util.StringTokenizer;
|
||||||
|
|
||||||
import org.apache.commons.lang.StringUtils;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class contains version information for OpenJPA. It uses
|
* This class contains version information for OpenJPA. It uses
|
||||||
* Ant's filter tokens to convert the template into a java
|
* Ant's filter tokens to convert the template into a java
|
||||||
|
@ -43,7 +41,7 @@ public class OpenJPAVersion {
|
||||||
static {
|
static {
|
||||||
Package pack = OpenJPAVersion.class.getPackage();
|
Package pack = OpenJPAVersion.class.getPackage();
|
||||||
String vers = pack == null ? null : pack.getImplementationVersion();
|
String vers = pack == null ? null : pack.getImplementationVersion();
|
||||||
if (StringUtils.isEmpty(vers))
|
if (vers == null || "".equals(vers.trim()))
|
||||||
vers = "0.0.0";
|
vers = "0.0.0";
|
||||||
VERSION_NUMBER = vers;
|
VERSION_NUMBER = vers;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue