kordos commented on pull request #1578: URL: https://github.com/apache/avro/pull/1578#issuecomment-1060797575
> Thanks for the use! that makes sense. However the patch you submitted will flatten the directory and there wont be any `../codegentest/testdata/...` sub-directories. Your above example is acombinatio of sub directories + some sub directory structure is replaced by one songle directory with dotted names. How would you be using the avrogen with patches submitted to generate the files in the above example? `avrogen -s example.avsc org.apache.avro/codegentest/testdata --skip-directories` might work, however if you have many namespaces, the avrogen commands will be custom for individual schema files. I could use it in two ways: `avrogen -s org.apache.avro/codegentest/testdata/example.avsc org.apache.avro/codegentest/testdata --skip-directories` or go to the end directory and run: ``` cd org.apache.avro/codegentest/testdata avrogen -s example.avsc . --skip-directories ``` Then no matter which naming convention you're using in your project, it will always generate classes in correct directory. Also it can be easily integrated with custom tool which I'm also thinking to build: 1. Get directory as and input 2. get all .avsc files 3. generate classes for each schema Such tool would be very helpfull as avrogen can handle only 1 file so when you have many files then it gets quite annoying. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
