| Revision | 72 (tree) |
|---|---|
| Time | 2015-08-21 00:39:55 |
| Author | t_nakayama1971 |
(empty log message)
| @@ -13,14 +13,14 @@ | ||
| 13 | 13 | import org.apache.logging.log4j.Logger; |
| 14 | 14 | import org.apache.logging.log4j.ThreadContext; |
| 15 | 15 | |
| 16 | -import project.common.master.AppConfig; | |
| 17 | -import project.common.master.Msg; | |
| 18 | 16 | import batch.base.BaseBatch; |
| 19 | 17 | import batch.base.BatchParameter; |
| 20 | 18 | import core.config.Env; |
| 21 | 19 | import core.config.Factory; |
| 22 | 20 | import core.util.DateUtil; |
| 23 | -import core.util.bean.Tuple; | |
| 21 | +import core.util.bean.Pair; | |
| 22 | +import project.common.master.AppConfig; | |
| 23 | +import project.common.master.Msg; | |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * バッチ作成のための親抽象クラス |
| @@ -203,12 +203,10 @@ | ||
| 203 | 203 | LOGGER.fatal(msg); |
| 204 | 204 | } |
| 205 | 205 | |
| 206 | - List<Tuple<String>> list = getOutputFiles(); | |
| 206 | + List<Pair<String, String>> list = getOutputFiles(); | |
| 207 | 207 | if (list != null) { |
| 208 | - for (final Tuple<String> file : list) { | |
| 209 | - if (0 < file.length()) { | |
| 210 | - LOGGER.fatal(file.get(0)); | |
| 211 | - } | |
| 208 | + for (final Pair<String, String> file : list) { | |
| 209 | + LOGGER.fatal(file.left()); | |
| 212 | 210 | } |
| 213 | 211 | } |
| 214 | 212 | } |
| @@ -111,6 +111,7 @@ | ||
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | } catch (final IllegalArgumentException ex) { |
| 114 | + LogManager.getLogger().info(ex.getMessage()); | |
| 114 | 115 | BatchStatus.printUsage(this.getClass().getName()); |
| 115 | 116 | Runtime.getRuntime().exit(Batch.RET_PARAM_ERROR); |
| 116 | 117 | } |
| @@ -130,6 +130,7 @@ | ||
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | } catch (final PhysicalException ex) { |
| 133 | + LogManager.getLogger().info(ex.getMessage()); | |
| 133 | 134 | exitCode = Batch.RET_FAILED; |
| 134 | 135 | } catch (final SQLException th) { |
| 135 | 136 | ThrowableUtil.error(th); |