public class JkJavaProjectCompilation<T>
extends java.lang.Object
JkJavaCompiler
and JkJavaCompileSpec
to use.Modifier and Type | Method and Description |
---|---|
JkJavaProjectCompilation<T> |
addOptions(java.lang.String... options)
Adds options to be passed to Java compiler
|
JkJavaProjectCompilation |
apply(java.util.function.Consumer<JkJavaProjectCompilation> consumer) |
JkRunnables |
getAfterCompile()
Returns the runnables to be run after compilation.
|
JkRunnables<JkJavaProjectCompilation<T>> |
getBeforeCompile()
Returns the runnables to run after source and resource generation.
|
JkRunnables<JkJavaProjectCompilation<T>> |
getBeforeGenerate()
Returns the runnables to run prior source and resource generation.
|
java.util.List<java.lang.String> |
getCompileOptions()
Returns extra compile options passed to the compiler
|
JkJavaCompiler<JkJavaProjectCompilation<T>> |
getCompiler()
Returns the compiler compiling Java sources of this project.
|
JkJavaCompileSpec |
getComputedCompileSpec()
Computes and returns the compile specification to pass to Java computer.
|
JkJavaVersion |
getJavaVersion()
Gets the Java version used as source and target version
|
JkCompileLayout<JkJavaProjectCompilation<T>> |
getLayout() |
JkConsumers<java.nio.file.Path,JkJavaProjectCompilation<T>> |
getResourceGenerator()
Returns the consumers generating resources.
|
JkResourceProcessor<JkJavaProjectCompilation<T>> |
getResourceProcessor()
Returns the resource processor.
|
java.lang.String |
getSourceEncoding()
Returns encoding to use to read Java source files
|
JkConsumers<java.nio.file.Path,JkJavaProjectCompilation<T>> |
getSourceGenerator()
Returns the consumers generating sources.
|
void |
run()
Performs entire compilation phase, including :
Generating resources
Generating sources
Processing resources (interpolation)
Compiling sources
|
void |
runIfNecessary()
As #run but perform only if not already done.
|
JkJavaProjectCompilation<T> |
setJavaVersion(JkJavaVersion javaVersion)
Sets the Java version used for both source and target.
|
JkJavaProjectCompilation<T> |
setSourceEncoding(java.lang.String sourceEncoding)
Set the encoding to use to read Java source files
|
public final T __
public JkJavaProjectCompilation apply(java.util.function.Consumer<JkJavaProjectCompilation> consumer)
public JkCompileLayout<JkJavaProjectCompilation<T>> getLayout()
public void run()
public void runIfNecessary()
public JkRunnables<JkJavaProjectCompilation<T>> getBeforeGenerate()
public JkRunnables<JkJavaProjectCompilation<T>> getBeforeCompile()
public JkConsumers<java.nio.file.Path,JkJavaProjectCompilation<T>> getSourceGenerator()
public JkConsumers<java.nio.file.Path,JkJavaProjectCompilation<T>> getResourceGenerator()
public JkJavaCompiler<JkJavaProjectCompilation<T>> getCompiler()
public JkRunnables getAfterCompile()
public java.lang.String getSourceEncoding()
public JkJavaProjectCompilation<T> setSourceEncoding(java.lang.String sourceEncoding)
public java.util.List<java.lang.String> getCompileOptions()
public JkJavaProjectCompilation<T> addOptions(java.lang.String... options)
public JkResourceProcessor<JkJavaProjectCompilation<T>> getResourceProcessor()
public JkJavaVersion getJavaVersion()
public JkJavaProjectCompilation<T> setJavaVersion(JkJavaVersion javaVersion)
public JkJavaCompileSpec getComputedCompileSpec()