Skip to content

Commit

Permalink
r2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
niuxuetao committed Feb 8, 2016
1 parent b63b292 commit f9343a4
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion PaxmlAll/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<artifactId>paxml-root</artifactId>
<groupId>org.paxml</groupId>
<version>2.0.0</version>
<version>2.0.1</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion PaxmlCore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>paxml-root</artifactId>
<groupId>org.paxml</groupId>
<version>2.0.0</version>
<version>2.0.1</version>
</parent>

<properties>
Expand Down
14 changes: 10 additions & 4 deletions PaxmlCore/src/main/java/org/paxml/util/DBUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package org.paxml.util;

import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;
Expand All @@ -38,10 +39,15 @@ public class DBUtils {
public static final String H2_DRIVER_CLASS = "org.h2.Driver";
public static final String H2_USER = "sa";
public static final String H2_PASSWORD = "";

public static String getDefaultH2Url(){
String file = PaxmlUtils.getFileUnderPaxmlHome("/data/h2", true).getAbsolutePath();
return "jdbc:h2:" + file +";AUTO_SERVER=TRUE";

public static String getDefaultH2Url() {
String h2File = "/data/h2";
File h2 = PaxmlUtils.getFileUnderPaxmlHome(h2File, false);
if (h2 == null) {
h2 = PaxmlUtils.getFileUnderUserHome(h2File);
}
String file = h2.getAbsolutePath();
return "jdbc:h2:" + file + ";AUTO_SERVER=TRUE";
}

public static void initDatabase(DataSource ds) {
Expand Down
5 changes: 1 addition & 4 deletions PaxmlCore/src/main/java/org/paxml/util/PaxmlUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,7 @@ public class PaxmlUtils {
public static final String PAXML_HOME_ENV_KEY = "PAXML_HOME";

public static File getPaxmlHome(boolean assert_PAXML_HOME) {
String paxmlHome = System.getenv(PAXML_HOME_ENV_KEY);
if (paxmlHome == null) {
paxmlHome = System.getProperty(PAXML_HOME_ENV_KEY);
}
String paxmlHome = getSystemProperty(PAXML_HOME_ENV_KEY);
if (paxmlHome == null) {
if (assert_PAXML_HOME) {
throw new PaxmlRuntimeException("System environment variable 'PAXML_HOME' not set!");
Expand Down
2 changes: 1 addition & 1 deletion PaxmlExample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<artifactId>paxml-root</artifactId>
<groupId>org.paxml</groupId>
<version>2.0.0</version>
<version>2.0.1</version>
</parent>

<name>PaxmlExample</name>
Expand Down
2 changes: 1 addition & 1 deletion PaxmlExecutable/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<artifactId>paxml-root</artifactId>
<groupId>org.paxml</groupId>
<version>2.0.0</version>
<version>2.0.1</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand Down
2 changes: 1 addition & 1 deletion PaxmlSelenium/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>paxml-root</artifactId>
<groupId>org.paxml</groupId>
<version>2.0.0</version>
<version>2.0.1</version>
</parent>

<name>PaxmlSelenium</name>
Expand Down
2 changes: 1 addition & 1 deletion PaxmlTestNG/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>paxml-root</artifactId>
<groupId>org.paxml</groupId>
<version>2.0.0</version>
<version>2.0.1</version>
</parent>

<name>PaxmlTestNG</name>
Expand Down
2 changes: 1 addition & 1 deletion PaxmlWeb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<artifactId>paxml-root</artifactId>
<groupId>org.paxml</groupId>
<version>2.0.0</version>
<version>2.0.1</version>
</parent>

<name>PaxmlWeb</name>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>paxml-root</artifactId>
<groupId>org.paxml</groupId>
<name>Paxml</name>
<version>2.0.0</version>
<version>2.0.1</version>
<packaging>pom</packaging>

<description>Paxml - Process Automation eXtensible Markup Language</description>
Expand Down

0 comments on commit f9343a4

Please sign in to comment.