org.schmant.task.jdk.javac.jdk6
Class Jdk6JavacTask
java.lang.Object
org.schmant.support.AbstractArgumentChecker
org.schmant.task.stub.AbstractTask<T>
org.schmant.task.stub.AbstractActionTask<T>
org.schmant.task.stub.AbstractProcessTask<T>
org.schmant.task.template.jdk.javac.AbstractJavacTask<Jdk6JavacTask>
org.schmant.task.jdk.javac.jdk6.Jdk6JavacTask
- All Implemented Interfaces:
- TaskDependency, ActionTaskConfigurable<Jdk6JavacTask>, ActionTaskSpec<Jdk6JavacTask>, LoggingConfigurable<Jdk6JavacTask>, OverwriteConfigurable<Jdk6JavacTask>, SourceConfigurable<Jdk6JavacTask>, SourceConfigured, TargetConfigurable<Jdk6JavacTask>, TargetConfigured, GeneratorTaskConfigurable<Jdk6JavacTask>, GeneratorTaskSpec<Jdk6JavacTask>, ProcessTaskConfigurable<Jdk6JavacTask>, ProcessTaskSpec<Jdk6JavacTask>, Task, TaskRunnable, TaskSpecification<Jdk6JavacTask>
public final class Jdk6JavacTask
- extends AbstractJavacTask<Jdk6JavacTask>
See Jdk6JavacTF
- Since:
- 0.5
- Author:
- Karl Gustafsson
- Task_package:
- org.schmant.task.base
Method Summary |
protected String |
getDefaultLogHeader()
Get the default log header to log (to level INFO) before the task is run
if the task user has not set a custom header. |
protected boolean |
hasSources()
This is implemented by subclasses to return true if any source
file property is set. |
protected boolean |
isMoreThanOneSourceAllowed()
Is more than one source object allowed? This method returns false
. |
protected void |
runJavac(Report r)
This is implemented by subclasses. |
String |
toString()
Default implementation for tasks. |
Methods inherited from class org.schmant.task.template.jdk.javac.AbstractJavacTask |
copyProperties, getAnnotationProcessingMode, getAnnotationProcessorOptions, getAnnotationProcessorPath, getAnnotationProcessors, getArguments, getClasspathDecorators, getClasspathEntries, getClasspathEntriesFromDecorators, getDebugOptions, getEncoding, getImplicitClassFileGeneration, getOptionsInternal, getSourceCodeVersion, getSourceFilesDir, getTargetVersion, isDeprecation, isNowarn, isSourcesMandatory, runInternal, validate |
Methods inherited from class org.schmant.task.stub.AbstractTask |
cancel, createTask, getDefaultLogFooter, getDependencyForTasksScheduledByThisTask, getDependencyObservable, getFailureCause, getLogFooter, getLogHeader, getSatisfiedStateLock, getThis, isCancelled, isDone, isInterrupted, isRunning, isSatisfied, isSuccessful, run, setLogFooter, setLogHeader, setReportLevel, setTraceLogging |
isMoreThanOneSourceAllowed
protected boolean isMoreThanOneSourceAllowed()
- Description copied from class:
AbstractActionTask
- Is more than one source object allowed? This method returns
false
. Subclasses override this method to return true
if they
allow several sources.
This method will only be called if AbstractActionTask.isSourcesMandatory()
returns
true
.
- Overrides:
isMoreThanOneSourceAllowed
in class AbstractActionTask<Jdk6JavacTask>
- Returns:
false
, always
getDefaultLogHeader
protected String getDefaultLogHeader()
- Description copied from class:
AbstractTask
- Get the default log header to log (to level INFO) before the task is run
if the task user has not set a custom header. Subclasses may override this to
return better headers.
This is called after validating the task.
Return null
to disable logging.
- Overrides:
getDefaultLogHeader
in class AbstractTask<Jdk6JavacTask>
- Returns:
- "Running " + toString()
toString
public String toString()
- Description copied from class:
AbstractTask
- Default implementation for tasks. Task implementations may override this.
It is used in the default log header that is written (level INFO) before
a task is run.
This implementation just returns the class name.
- Overrides:
toString
in class AbstractProcessTask<Jdk6JavacTask>
hasSources
protected boolean hasSources()
- Description copied from class:
AbstractJavacTask
- This is implemented by subclasses to return
true
if any source
file property is set.
- Specified by:
hasSources
in class AbstractJavacTask<Jdk6JavacTask>
runJavac
protected void runJavac(Report r)
throws InterruptedException
- Description copied from class:
AbstractJavacTask
- This is implemented by subclasses. It is executed when the task is run.
- Specified by:
runJavac
in class AbstractJavacTask<Jdk6JavacTask>
- Throws:
InterruptedException