|
a/src/main/java/net/timbusproject/extractors/modules/tavernaextractor/TavernaExtractorOSGi.java |
|
b/src/main/java/net/timbusproject/extractors/modules/tavernaextractor/TavernaExtractorOSGi.java |
|
... |
|
... |
35 |
/**
|
35 |
/**
|
36 |
* munterberger@sba-research.org
|
36 |
* munterberger@sba-research.org
|
37 |
*/
|
37 |
*/
|
38 |
public class TavernaExtractorOSGi implements IExtractor{
|
38 |
public class TavernaExtractorOSGi implements IExtractor{
|
39 |
|
39 |
|
40 |
private Logger LOGGER = LoggerFactory.getLogger(TavernaExtractorOSGi.class);
|
|
|
41 |
public TavernaExtractorOSGi() {}
|
40 |
public TavernaExtractorOSGi() {}
|
42 |
|
41 |
|
43 |
@Autowired
|
42 |
@Autowired
|
44 |
private BundleContext bundleContext;
|
43 |
private BundleContext bundleContext;
|
45 |
|
44 |
|
|
... |
|
... |
91 |
endpoint.getProperty("user"),
|
90 |
endpoint.getProperty("user"),
|
92 |
endpoint.getProperty("password"));
|
91 |
endpoint.getProperty("password"));
|
93 |
|
92 |
|
94 |
try {
|
93 |
try {
|
95 |
TavernaExtractor extractor = new TavernaExtractor(_sshManager);
|
94 |
TavernaExtractor extractor = new TavernaExtractor(_sshManager);
|
96 |
TavernaExtractor.setTavernaHome(Paths.get(tavernaHome));
|
95 |
extractor.setTavernaHome(Paths.get(tavernaHome));
|
97 |
TavernaExtractor.setArchimateOutputPath(Paths.get(archimateOutputPath));
|
96 |
extractor.setArchimateOutputPath(Paths.get(archimateOutputPath));
|
98 |
TavernaExtractor.setInputFileName(Paths.get(inputFileName));
|
97 |
extractor.setInputFileName(Paths.get(inputFileName));
|
99 |
|
98 |
|
100 |
// starts the execution
|
99 |
// starts the execution
|
101 |
extractor.process(true); //true = remote execution
|
100 |
extractor.process(true); //true = remote execution
|
102 |
|
101 |
|
103 |
// inform user about the result of the extraction
|
102 |
// inform user about the result of the extraction
|