Hello,
We use the command line tools to generate Java client files from RODL files. In the past that has just been from one large RODL file which worked fine. Now I need to split the files into separate RODL files. The namespacing is putting up a fight though. The namespace specified in the RODL file is used inconsistently by RODL2Code. I would prefer to specify the namespace in the RODL, not the command line but it seems this is not possible.
The two RODL files in the screenshot below have their own name space defined.
When code is generated using a namespace on the command line the output is :
The import statement is wrong. No files were generated with that namespace.
If I generate the files without specifying the namespace on the command line, the output is :
So the overall questions.
1.) If not specifying the namespace on the command line, why doesn’t the generated file use the namespace stored in the RODL? It does for the import statements but not the package name.
2.) If a namespace is used on the command line, would it be better to not output the import statement? it is unlikely to be correct unless the user specifies the same namespace in all the RODL files and at the command line for each RODL file.
Regards,
Will.