Details
Description
With AVRO-872, multiple inter-dependent schema files can be parsed. SpecificCompilerTool should be changed to allow the same when producing java from multiple schemas or protocols. Proposed syntax change is to allow multiple files or directories to be passed (space-delimited) before the last token, which is the output path.
- To compile multiple files where b depends on a:
$ java -cp avro-tools-x.x.x.jar org.apache.avro.tool.Main \ compile schema input/a.avsc input/b.avsc output
- To compile files from multiple directories:
$ java -cp avro-tools-x.x.x.jar org.apache.avro.tool.Main \ compile schema input1 input2 output
- To compile b which depends on a and all the other content in input that might depend on a or b:
$ java -cp avro-tools-x.x.x.jar org.apache.avro.tool.Main \ compile schema input/a.avsc input/b.avsc input output