mirror of
https://github.com/apache/openjpa.git
synced 2025-02-06 10:09:30 +00:00
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.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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user