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
|
||||
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)
|
||||
retValue = File.separator + "Adempiere";
|
||||
return retValue;
|
||||
|
|
Loading…
Reference in New Issue