Use "user.dir" as the default adempiere home folder when running on server.
This commit is contained in:
parent
d4be04bd12
commit
2c4cb3b712
|
@ -387,13 +387,6 @@ public final class Adempiere
|
||||||
{
|
{
|
||||||
// Try Environment
|
// Try Environment
|
||||||
String retValue = Ini.getAdempiereHome();
|
String retValue = Ini.getAdempiereHome();
|
||||||
// Look in current Directory
|
|
||||||
if (retValue == null && System.getProperty("user.dir").indexOf("Adempiere") != -1)
|
|
||||||
{
|
|
||||||
retValue = System.getProperty("user.dir");
|
|
||||||
int pos = retValue.indexOf("Adempiere");
|
|
||||||
retValue = retValue.substring(pos+9);
|
|
||||||
}
|
|
||||||
if (retValue == null)
|
if (retValue == null)
|
||||||
retValue = File.separator + "Adempiere";
|
retValue = File.separator + "Adempiere";
|
||||||
return retValue;
|
return retValue;
|
||||||
|
@ -455,11 +448,11 @@ public final class Adempiere
|
||||||
return url.getHost();
|
return url.getHost();
|
||||||
} // getCodeBase
|
} // getCodeBase
|
||||||
|
|
||||||
public static synchronized boolean isStarted()
|
public static synchronized boolean isStarted()
|
||||||
{
|
{
|
||||||
return (log != null);
|
return (log != null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
* Startup Client/Server.
|
* Startup Client/Server.
|
||||||
* - Print greeting,
|
* - Print greeting,
|
||||||
|
|
Loading…
Reference in New Issue