1
|
package eu.dnetlib.iis.core.workflows.lodexport;
|
2
|
|
3
|
import eu.dnetlib.data.mapreduce.hbase.lodExport.utils.ContextExporter;
|
4
|
import org.apache.log4j.Logger;
|
5
|
|
6
|
|
7
|
|
8
|
public class ContextExportWrapper {
|
9
|
private static Logger log = Logger.getLogger(ContextExportWrapper.class);
|
10
|
|
11
|
public static void main(String[] args) throws Exception {
|
12
|
log.info("ContextExporter...");
|
13
|
|
14
|
try {
|
15
|
|
16
|
log.info("Context path.." + args[0]);
|
17
|
log.info("Context url endpoint param.." + args[1]);
|
18
|
|
19
|
ContextExporter contextExporter = new ContextExporter(args[0], args[1], true);
|
20
|
|
21
|
} catch (Exception e) {
|
22
|
log.error(e);
|
23
|
throw new Exception(e);
|
24
|
}
|
25
|
}
|
26
|
}
|