Class JavaCompiler

All Implemented Interfaces:
Generator, ResourceProvider

public class JavaCompiler extends JavaTool

The JavaCompiler generator provides two types of resources.

  1. The JavaSourceFiles of the project as configured with addSources(org.jdrupes.builder.api.FileTree<org.jdrupes.builder.java.JavaSourceFile>) in response to a ResourceRequest with ResourceType JavaTypes.JavaSourceTreeType (or a more general type).

  2. The ClassFiles that result from compiling the sources in response to a ResourceRequest with ResourceType JavaTypes.ClassTreeType (or a more general type such as JavaTypes.ClasspathElementType).