IDEMPIERE-4602 Encrypt passwords on properties files (FHCA-1982) (#508)

Implement suggestions from Hiep
This commit is contained in:
Carlos Ruiz 2021-01-06 12:12:09 +01:00 committed by GitHub
parent bbb4c48b67
commit 05a7222828
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 6 deletions

View File

@ -816,8 +816,7 @@ public final class Ini implements Serializable
secretVar,
secretValue
};
@SuppressWarnings("unused") // used for debugging purposes
String retValue = runCommand(command);
runCommand(command);
}
private static String getUtilsCmd(String script) {
@ -855,10 +854,8 @@ public final class Ini implements Serializable
while ((s = stdError.readLine()) != null) {
msg.append(s);
}
try {
p.waitFor(5, TimeUnit.SECONDS);
} catch (InterruptedException e) {
throw new AdempiereException("Timeout waiting for " + command[0], e);
if ( !p.waitFor(5, TimeUnit.SECONDS)) {
throw new AdempiereException("Timeout waiting 5 seconds for " + command[0]);
}
if (p.exitValue() != 0) {
throw new Exception(msg.toString());