org.schmant.task.template.jdk.java
Class AbstractExtJvmTask<T extends AbstractExtJvmTask<T>>

java.lang.Object
  extended by org.schmant.support.AbstractArgumentChecker
      extended by org.schmant.task.stub.AbstractTask<T>
          extended by org.schmant.task.template.process.AbstractExtProcessTask<T>
              extended by org.schmant.task.template.jdk.java.AbstractExtJvmTask<T>
All Implemented Interfaces:
TaskDependency, LoggingConfigurable<T>, Task, TaskRunnable, TaskSpecification<T>, ExtProcessConfigured, ExtProcessTask<T>
Direct Known Subclasses:
AbstractExtJavaTask, ExtFindbugsTask

public abstract class AbstractExtJvmTask<T extends AbstractExtJvmTask<T>>
extends AbstractExtProcessTask<T>

Since:
0.9
Author:
Karl Gustafsson

Constructor Summary
AbstractExtJvmTask()
           
 
Method Summary
 void copyProperties(T spec)
          Copy the properties to the target object.
protected  List<PathDecorator<?,?>> getClasspathDecorators()
           
protected  List<Object> getClasspathEntries()
           
protected  Object getJavaExecutable()
           
protected  File getJavaHome()
           
protected  List<String> getJvmOptions()
           
 
Methods inherited from class org.schmant.task.template.process.AbstractExtProcessTask
addArgumentsToCommandList, execAndWait, getArguments, getEnvironmentVariables, getProcessResult, getStderrStrategy, getStdoutStrategy, getWorkingDirectory, isFailOnErrors, isInheritEnvironmentVariables
 
Methods inherited from class org.schmant.task.stub.AbstractTask
cancel, createTask, getDefaultLogFooter, getDefaultLogHeader, getDependencyForTasksScheduledByThisTask, getDependencyObservable, getFailureCause, getLogFooter, getLogHeader, getSatisfiedStateLock, getThis, isCancelled, isDone, isInterrupted, isRunning, isSatisfied, isSuccessful, run, runInternal, setLogFooter, setLogHeader, setReportLevel, setTraceLogging, toString, validate
 
Methods inherited from class org.schmant.support.AbstractArgumentChecker
check, check, check, check
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.schmant.task.Task
cancel, getDependencyForTasksScheduledByThisTask, getFailureCause, isCancelled, isDone, isInterrupted, isRunning, isSuccessful
 
Methods inherited from interface org.schmant.run.TaskDependency
getDependencyObservable, getSatisfiedStateLock, isSatisfied
 
Methods inherited from interface org.schmant.task.TaskRunnable
run
 

Constructor Detail

AbstractExtJvmTask

public AbstractExtJvmTask()
Method Detail

getClasspathEntries

protected final List<Object> getClasspathEntries()

getClasspathDecorators

protected final List<PathDecorator<?,?>> getClasspathDecorators()

getJvmOptions

protected final List<String> getJvmOptions()

getJavaExecutable

protected final Object getJavaExecutable()

getJavaHome

protected final File getJavaHome()

copyProperties

public void copyProperties(T spec)
Description copied from class: AbstractTask
Copy the properties to the target object.

Subclasses must override this to copy their properties. The overriding method must call super.copyProperties.

Specified by:
copyProperties in interface TaskSpecification<T extends AbstractExtJvmTask<T>>
Overrides:
copyProperties in class AbstractExtProcessTask<T extends AbstractExtJvmTask<T>>
Parameters:
spec - The specification to copy properties to.