org.apache.stanbol.autotagging.cli.CommandLineRunner reads wrong parameter from
command-line
--------------------------------------------------------------------------------------------
Key: STANBOL-193
URL: https://issues.apache.org/jira/browse/STANBOL-193
Project: Stanbol
Issue Type: Bug
Components: Enhancer
Reporter: Wilhelm Koop
Priority: Trivial
Method "handleModel(String[] args)" reads wrong parameter when trying to build
model from command-line.
Bug seems to be in these lines:
String modelPath = args[1];
Model model = TDBFactory.createModel(modelPath);
for (String filename : Arrays.asList(args).subList(2, args.length)) {
Changing it to following worked fine on my computer:
String modelPath = args[0];
Model model = TDBFactory.createModel(modelPath);
for (String filename : Arrays.asList(args).subList(1, args.length)) {
(But can result in errors when building model with option "-d")
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira