IDEMPIERE-4602 Encrypt passwords on properties files (FHCA-1982) (#508)
Implement suggestions from Hiep
This commit is contained in:
parent
bbb4c48b67
commit
05a7222828
|
@ -816,8 +816,7 @@ public final class Ini implements Serializable
|
||||||
secretVar,
|
secretVar,
|
||||||
secretValue
|
secretValue
|
||||||
};
|
};
|
||||||
@SuppressWarnings("unused") // used for debugging purposes
|
runCommand(command);
|
||||||
String retValue = runCommand(command);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String getUtilsCmd(String script) {
|
private static String getUtilsCmd(String script) {
|
||||||
|
@ -855,10 +854,8 @@ public final class Ini implements Serializable
|
||||||
while ((s = stdError.readLine()) != null) {
|
while ((s = stdError.readLine()) != null) {
|
||||||
msg.append(s);
|
msg.append(s);
|
||||||
}
|
}
|
||||||
try {
|
if ( !p.waitFor(5, TimeUnit.SECONDS)) {
|
||||||
p.waitFor(5, TimeUnit.SECONDS);
|
throw new AdempiereException("Timeout waiting 5 seconds for " + command[0]);
|
||||||
} catch (InterruptedException e) {
|
|
||||||
throw new AdempiereException("Timeout waiting for " + command[0], e);
|
|
||||||
}
|
}
|
||||||
if (p.exitValue() != 0) {
|
if (p.exitValue() != 0) {
|
||||||
throw new Exception(msg.toString());
|
throw new Exception(msg.toString());
|
||||||
|
|
Loading…
Reference in New Issue