[ 
https://issues.apache.org/jira/browse/STANBOL-193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matteo Moci updated STANBOL-193:
--------------------------------

    Attachment: CommandLineRunnerTest.java
                STANBOL-193_new_cli_options.patch

This is my first attempt ever to sumbit a patch, and I tried to fix the issue: 
new command line options allow to set model directory destination and filenames 
list to load into model. 

With the CommandLineRunnerTest you can see how it works, but I didn't include 
it in the patch since it doesn't assert anything yet. 

                
> 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
>         Attachments: CommandLineRunnerTest.java, 
> STANBOL-193_new_cli_options.patch
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to