Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/wsplgen/JobExecutor.java @ 1650:aaf8d32f85bd
Improved Facet creation for floodmaps - WSPLGEN and barriers Facets are only created if the calculation was successful.
flys-artifacts/trunk@2837 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 27 Sep 2011 12:40:42 +0000 |
parents | e7d5452a7381 |
children | ef2300b450bf |
comparison
equal
deleted
inserted
replaced
1649:74142aa5d938 | 1650:aaf8d32f85bd |
---|---|
77 logObserver.join(); | 77 logObserver.join(); |
78 errorObserver.join(); | 78 errorObserver.join(); |
79 } | 79 } |
80 catch (InterruptedException iee) { /* do nothing */ } | 80 catch (InterruptedException iee) { /* do nothing */ } |
81 | 81 |
82 job.getCallContext().afterBackground(CallContext.STORE); | |
83 | |
84 logger.info("WSPLGEN exit value: " + process.exitValue()); | 82 logger.info("WSPLGEN exit value: " + process.exitValue()); |
85 logger.info( | 83 logger.info( |
86 "WSPLGEN throw " + | 84 "WSPLGEN throw " + |
87 errorObserver.numErrors() + " errors."); | 85 errorObserver.numErrors() + " errors."); |
88 logger.info( | 86 logger.info( |
89 "WSPLGEN throw " + | 87 "WSPLGEN throw " + |
90 errorObserver.numWarnings() + " warnings."); | 88 errorObserver.numWarnings() + " warnings."); |
91 | 89 |
92 MapfileGenerator.getInstance().update(); | 90 if (process.exitValue() < 2 && errorObserver.numErrors() == 0) { |
91 FacetCreator fc = job.getFacetCreator(); | |
92 fc.createWSPLGENFacet(); | |
93 fc.finish(); | |
94 | |
95 MapfileGenerator.getInstance().update(); | |
96 } | |
97 | |
98 job.getCallContext().afterBackground(CallContext.STORE); | |
93 | 99 |
94 return; | 100 return; |
95 } | 101 } |
96 } | 102 } |
97 catch (SecurityException se) { | 103 catch (SecurityException se) { |