entur / schema2proto

XSD to proto descriptor conversion tool capable of manipulating proto files as well
European Union Public License 1.2
40 stars 20 forks source link

schema2proto seems to ignore the --outputFilename command line argument #193

Open salimfadhleyhtp opened 3 years ago

salimfadhleyhtp commented 3 years ago

I have a command like this:

java -jar /tmp/schema2proto/schema2proto-lib/target/schema2proto-lib-1.40-SNAP
SHOT.jar --configFile /generateproto.yml --outputFilename "elexeon_RDRI.proto" --outputDirectory "/proto" /xsds/RDRI_Dat
aPush_Response_XSD.xsd

As a result of running this, it generates a proto file:

/com/elexeon/com_elexeon.proto

The filename appears to be derived from the targetNamespace attribute of the schema tag in the XSD.

Is there any idea how to make schema2proto save the exact file required?

seime commented 3 years ago

What is the content of your generateproto.yml file? If I remember correctly you should use either command line arguments OR the config file, not both.