|
a/src/main/java/net/timbusproject/extractors/modules/tavernaextractor/Main.java |
|
b/src/main/java/net/timbusproject/extractors/modules/tavernaextractor/Main.java |
|
... |
|
... |
63 |
TavernaExtractor extractor = null;
|
63 |
TavernaExtractor extractor = null;
|
64 |
|
64 |
|
65 |
if (parse.hasOption("v"))
|
65 |
if (parse.hasOption("v"))
|
66 |
verbose = true;
|
66 |
verbose = true;
|
67 |
|
67 |
|
68 |
extractor = new TavernaExtractor(null);
|
68 |
extractor = new TavernaExtractor(verbose);
|
69 |
TavernaExtractor.setTavernaHome(Main.getTavernaHome(tavernaHome));
|
69 |
TavernaExtractor.setTavernaHome(Main.getTavernaHome(tavernaHome));
|
70 |
TavernaExtractor.setArchimateOutputPath(Paths.get(archimateOutputPath));
|
70 |
TavernaExtractor.setArchimateOutputPath(Paths.get(archimateOutputPath));
|
71 |
TavernaExtractor.setInputFileName(Paths.get(inputFileName));
|
71 |
TavernaExtractor.setInputFileName(Paths.get(inputFileName));
|
72 |
TavernaExtractor.setDotLocation(Paths.get(dotExeLocation));
|
72 |
TavernaExtractor.setDotLocation(Paths.get(dotExeLocation));
|
73 |
extractor.process();
|
73 |
extractor.process(false); //false = local execution
|
74 |
}
|
74 |
}
|
75 |
|
75 |
|
76 |
// List all provenance entries OR Running DROID identification
|
76 |
// List all provenance entries OR Running DROID identification
|
77 |
if (parse.hasOption("d")) {
|
77 |
if (parse.hasOption("d")) {
|
78 |
ProvenanceAccessClient pac;
|
78 |
ProvenanceAccessClient pac;
|
|
... |
|
... |
226 |
|
226 |
|
227 |
Properties prop = new Properties();
|
227 |
Properties prop = new Properties();
|
228 |
InputStream input = null;
|
228 |
InputStream input = null;
|
229 |
try {
|
229 |
try {
|
230 |
|
230 |
|
231 |
input = new FileInputStream("TavernaExtractor.properties");
|
231 |
input = Main.class.getClassLoader().getResourceAsStream("TavernaExtractor.properties");
|
232 |
prop.load(input);
|
232 |
prop.load(input);
|
233 |
|
233 |
|
234 |
LOGGER.debug("Load properties successfully.");
|
234 |
LOGGER.debug("Load properties successfully.");
|
235 |
|
235 |
|
236 |
} catch (IOException io) {
|
236 |
} catch (IOException io) {
|