comparison flys-artifacts/src/main/java/de/intevation/flys/wsplgen/WSPLGENCallable.java @ 4576:a46dc120afd7

Merged.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 27 Nov 2012 14:30:08 +0100
parents b87073a05f9d
children
comparison
equal deleted inserted replaced
4575:585374987c5c 4576:a46dc120afd7
1 package de.intevation.flys.wsplgen; 1 package de.intevation.flys.wsplgen;
2
3 import de.intevation.artifacts.CallContext;
4 import de.intevation.flys.artifacts.model.map.WSPLGENJob;
2 5
3 import java.io.File; 6 import java.io.File;
4 import java.io.IOException; 7 import java.io.IOException;
5 import java.util.concurrent.Callable; 8 import java.util.concurrent.Callable;
6 9
7 import org.apache.log4j.Logger; 10 import org.apache.log4j.Logger;
8
9 import de.intevation.artifacts.CallContext;
10 import de.intevation.flys.artifacts.model.map.WSPLGENJob;
11 11
12 12
13 /** 13 /**
14 * A Callable that is used to start and observe an external Process for WSPLGEN. 14 * A Callable that is used to start and observe an external Process for WSPLGEN.
15 * 15 *
60 } 60 }
61 61
62 62
63 protected void execute(String[] args, File dir) { 63 protected void execute(String[] args, File dir) {
64 logger.info("Start JobExecutor for artifact: " + dir.getName()); 64 logger.info("Start JobExecutor for artifact: " + dir.getName());
65
66 String errorMsg = null;
67 65
68 try { 66 try {
69 synchronized (this) { 67 synchronized (this) {
70 process = Runtime.getRuntime().exec(args, null, dir); 68 process = Runtime.getRuntime().exec(args, null, dir);
71 69

http://dive4elements.wald.intevation.org