|
|
@ -29,7 +29,7 @@ public class CarbonContextInitializationUtil {
|
|
|
|
private final static String CARBON_HOME = "carbon.home";
|
|
|
|
private final static String CARBON_HOME = "carbon.home";
|
|
|
|
|
|
|
|
|
|
|
|
public static void initializeCarbonContext() {
|
|
|
|
public static void initializeCarbonContext() {
|
|
|
|
if (System.getProperty("carbon.home") == null) {
|
|
|
|
if (System.getProperty(CARBON_HOME) == null) {
|
|
|
|
File file = new File("src/test/resources");
|
|
|
|
File file = new File("src/test/resources");
|
|
|
|
if (file.exists()) {
|
|
|
|
if (file.exists()) {
|
|
|
|
System.setProperty(CARBON_HOME, file.getAbsolutePath());
|
|
|
|
System.setProperty(CARBON_HOME, file.getAbsolutePath());
|
|
|
|