public class JkProjectCompilation<T>
extends java.lang.Object
JkJavaCompiler
and JkJavaCompileSpec
to use.Modifier and Type | Field and Description |
---|---|
T |
__
For parent chaining
|
static java.lang.String |
JAVA_SOURCES_COMPILE_ACTION |
static java.lang.String |
RESOURCES_PROCESS_ACTION |
Modifier and Type | Method and Description |
---|---|
JkProjectCompilation<T> |
addJavaCompilerOptions(java.lang.String... options)
Adds options to be passed to Java compiler
|
JkProjectCompilation |
apply(java.util.function.Consumer<JkProjectCompilation> consumer) |
JkProjectCompilation<T> |
configureDependencies(java.util.function.Function<JkDependencySet,JkDependencySet> modifier) |
JkRunnables<JkProjectCompilation<T>> |
getCompileActions()
Returns the
JkRunnables to be run for compilation. |
JkDependencySet |
getDependencies() |
java.util.List<java.lang.String> |
getExtraJavaCompilerOptions()
Returns extra compile options passed to the compiler
|
JkCompileLayout<JkProjectCompilation<T>> |
getLayout() |
JkRunnables<JkProjectCompilation<T>> |
getPostCompileActions()
Returns the
JkRunnables to be run after compilation. |
JkRunnables<JkProjectCompilation<T>> |
getPreCompileActions()
Returns the
JkRunnables to run after source and resource generation. |
JkResourceProcessor<JkProjectCompilation<T>> |
getResourceProcessor()
Returns the resource processor.
|
JkResolveResult |
resolveDependencies() |
void |
run()
Performs entire compilation phase.
|
void |
runIfNeeded()
As #run but perform only if not already done.
|
public static final java.lang.String RESOURCES_PROCESS_ACTION
public static final java.lang.String JAVA_SOURCES_COMPILE_ACTION
public final T __
public JkProjectCompilation apply(java.util.function.Consumer<JkProjectCompilation> consumer)
public JkCompileLayout<JkProjectCompilation<T>> getLayout()
public void run()
public void runIfNeeded()
public JkRunnables<JkProjectCompilation<T>> getPreCompileActions()
JkRunnables
to run after source and resource generation. User can chain its own runnable
to customise the process. Contains RESOURCES_PROCESS_ACTION
by defaultpublic JkRunnables<JkProjectCompilation<T>> getCompileActions()
JkRunnables
to be run for compilation.
Contains JAVA_SOURCES_COMPILE_ACTION
by default.public JkRunnables<JkProjectCompilation<T>> getPostCompileActions()
JkRunnables
to be run after compilation. User can chain its own runnable
to customise the process. Empty by default.public java.util.List<java.lang.String> getExtraJavaCompilerOptions()
public JkProjectCompilation<T> addJavaCompilerOptions(java.lang.String... options)
public JkResourceProcessor<JkProjectCompilation<T>> getResourceProcessor()
public JkProjectCompilation<T> configureDependencies(java.util.function.Function<JkDependencySet,JkDependencySet> modifier)
public JkResolveResult resolveDependencies()
public JkDependencySet getDependencies()