Class GeneratedSourceCompilerFactory
java.lang.Object
com.graphql_java_generator.plugin.test.compiler.GeneratedSourceCompilerFactory
- Author:
- etienne-sf
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GeneratedSourceCompilergetGeneratedSourceCompiler(org.slf4j.Logger log, String className, File javaSrcFolder, File classTargetFolder, String classpath, String encoding, String javaVersion, String javaRelease) The method to get a new instance ofGeneratedSourceCompiler
-
Constructor Details
-
GeneratedSourceCompilerFactory
public GeneratedSourceCompilerFactory()
-
-
Method Details
-
getGeneratedSourceCompiler
public static GeneratedSourceCompiler getGeneratedSourceCompiler(org.slf4j.Logger log, String className, File javaSrcFolder, File classTargetFolder, String classpath, String encoding, String javaVersion, String javaRelease) The method to get a new instance ofGeneratedSourceCompiler- Parameters:
log- The logger, where to write all output messagesclassName- The class that is being generatedjavaSrcFolder- The folder, where to store java files.classTargetFolder- The folder, where to store class files.classpath- The classpath to be added to the compiler classpath, to allow compilation of the received generated sources. If null, the current classpath is used (taken from the "java.class.path" system property)javaRelease-javaVersion-charset- The name of theCharset(like UTF-8...), to use to store the java source file.- Returns:
-