comparison flys-artifacts/src/main/java/de/intevation/flys/wsplgen/WSPLGENCallable.java @ 4573:b87073a05f9d

flys-client: Patch to render combobox options as clickable links. The way of passing data arguments to the links and further to the Artifact feeding service is somewhat hacked and should be refactored (later...).
author Christian Lins <christian.lins@intevation.de>
date Tue, 27 Nov 2012 12:50:10 +0100
parents 453d2d0c4258
children
comparison
equal deleted inserted replaced
4572:4bd42fe098b4 4573:b87073a05f9d
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