esa / CCSDS_MO_StubGenerator

Generates technology bindings for CCSDS MAL service specifications
Other
4 stars 9 forks source link

generator parsing options #8

Closed lacourte closed 8 years ago

lacourte commented 8 years ago

The StubGenerator.main defines options -r and -R to specify the reference directories. Both options are parsed with an equalsIgnoreCase() call, making the -R option never set.

By the way I needed to set the -R option, even with no xsd reference file, because the xsdRefDirectory field otherwise remains at null, and then calling loadXsdSpecifications fails on line: if (directory.exists()).

Thank you

SamCooper commented 8 years ago

Good spot, I'll get that fixed.

Do you need to call it from the command line or would it be preferable to invoke it programatically?

The 1.3 version now adds a way of invoking it directly.

lacourte commented 8 years ago

Actually I want to debug the execution from within eclipse. The only way I know to do that is to start a debug session with the StubGenerator project main, setting the arguments.

SamCooper commented 8 years ago

I can fix this quickly in the code and push it to here but it won't appear in Maven Central until I do another release.

Would that be ok?

lacourte commented 8 years ago

Yes it is fine. I applied a patch locally and recompiled so I can work. I am in no hurry for the fix. Thank you.