Commit c9f0f78b authored by javi's avatar javi
Browse files

exception code

parent 2c2b8a8c
Pipeline #24714 failed with stage
in 1 minute and 9 seconds
......@@ -32,13 +32,7 @@ import org.apache.commons.cli.ParseException;
import org.apache.commons.lang.ArrayUtils;
import org.apache.maven.shared.utils.io.FileUtils;
import gate.Factory;
import gate.Gate;
import gate.creole.ANNIEConstants;
import gate.creole.ConditionalSerialAnalyserController;
import gate.creole.Plugin;
import gate.creole.SerialAnalyserController;
import gate.creole.SerialController;
import gate.util.GateException;
import gate.util.persistence.PersistenceManager;
......@@ -321,8 +315,13 @@ public class App {
//A work around complex because of the GATE architectural issues.
//String application = "/home/javi/GATE_Developer_8.6.1/application_exported/application_exported/application.xgapp";
String application = parameters.get("gateApplicationPath");
PersistenceManager.loadObjectFromFile(new File(application));
try {
PersistenceManager.loadObjectFromFile(new File(application));
}catch(Exception e) {
System.out.println("App :: process :: ERROR loadin gate application form cloud. Please review the path of the application");
e.printStackTrace();
System.exit(1);
}
File[] files = directory.listFiles();
int len = files.length;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment