RuntimeExec class is tighter when the actual command is unavailable and guarantees a failure error code.

The RuntimeExecutableContentTransformer generates a more verbose error message when the tranformer fails to validate on startup.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5888 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-06-07 22:15:32 +00:00
parent 32d169b99b
commit 458a400693

View File

@@ -146,6 +146,10 @@ public class RuntimeExecutableContentTransformer extends AbstractContentTransfor
ExecutionResult result = checkCommand.execute();
// check the return code
available = result.getSuccess();
if (!available)
{
logger.error("Failed to start a runtime executable content transformer: \n" + result);
}
}
else
{