Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
INB
Text Mining
Generic Tools
nlp-gate-generic-component
Commits
c9f0f78b
Commit
c9f0f78b
authored
Sep 27, 2021
by
javi
Browse files
exception code
parent
2c2b8a8c
Pipeline
#24714
failed with stage
in 1 minute and 9 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/es/bsc/inb/nlp/gate/generic/component/main/App.java
View file @
c9f0f78b
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment