This issue is related to #17, but occurs to JavaRenderers. For example, in mc-java I had to add the below code so that only Java files are processed:
override fun render(sources: SourceFileSet) {
// We could receive `grpc` or `kotlin` output roots here. Now we do only `java`.
if (!sources.outputRoot.endsWith("java")) {
return
}
...
}
The manipulation with the name of the output root works here because I know for sure that grpc directory is not going to have rejection types. But in general we need to take care about the content of the file set. See io.spine.tools.mc.java.rejection.RejectionRenderer for details.
As a developer I expect that only .java files are passed to a descendant of the class called JavaRenderer.
This issue is related to #17, but occurs to
JavaRenderers. For example, inmc-javaI had to add the below code so that only Java files are processed:The manipulation with the name of the output root works here because I know for sure that
grpcdirectory is not going to have rejection types. But in general we need to take care about the content of the file set. Seeio.spine.tools.mc.java.rejection.RejectionRendererfor details.As a developer I expect that only
.javafiles are passed to a descendant of the class calledJavaRenderer.