Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/wsplgen/WSPLGENCallable.java @ 8202:e4606eae8ea5
sed src/**/*.java 's/logger/log/g'
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 05 Sep 2014 12:58:17 +0200 |
parents | af13ceeba52a |
children | 2dba91c00c72 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/wsplgen/WSPLGENCallable.java Fri Sep 05 12:54:58 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/wsplgen/WSPLGENCallable.java Fri Sep 05 12:58:17 2014 +0200 @@ -32,7 +32,7 @@ System.getProperty("wsplgen.bin.path"); - private Logger logger = Logger.getLogger(WSPLGENCallable.class); + private Logger log = Logger.getLogger(WSPLGENCallable.class); private Process process; @@ -69,7 +69,7 @@ protected void execute(String[] args, File dir) { - logger.info("Start JobExecutor for artifact: " + dir.getName()); + log.info("Start JobExecutor for artifact: " + dir.getName()); try { synchronized (this) { @@ -85,7 +85,7 @@ process.waitFor(); } catch (InterruptedException ie) { - logger.warn("WSPLGEN job interrupted: " + ie.getMessage()); + log.warn("WSPLGEN job interrupted: " + ie.getMessage()); } try { @@ -94,11 +94,11 @@ } catch (InterruptedException iee) { /* do nothing */ } - logger.info("WSPLGEN exit value: " + process.exitValue()); - logger.info( + log.info("WSPLGEN exit value: " + process.exitValue()); + log.info( "WSPLGEN throw " + errorObserver.numErrors() + " errors."); - logger.info( + log.info( "WSPLGEN throw " + errorObserver.numWarnings() + " warnings."); @@ -116,23 +116,23 @@ } } catch (SecurityException se) { - logger.error(se); + log.error(se); } catch (IOException ioe) { - logger.error(ioe); + log.error(ioe); } catch (NullPointerException npe) { - logger.error(npe, npe); + log.error(npe, npe); } catch (IndexOutOfBoundsException ioobe) { - logger.error(ioobe, ioobe); + log.error(ioobe, ioobe); } } public void cancelWSPLGEN() { if (process != null) { - logger.debug("Cancel running WSPLGEN process."); + log.debug("Cancel running WSPLGEN process."); process.destroy(); } }