net.dpml.tools.tasks
Class JavacTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by net.dpml.tools.tasks.JavacTask
All Implemented Interfaces:
SelectorContainer

public class JavacTask
extends MatchingTask

Compile sources located in ${project.target}/main to java class file under the ${project.target}/classes directory. Properties influencing the compilation include:

Version:
1.2.0
Author:
Digital Product Meta Library

Field Summary
static String DEBUG_KEY
          Constant debug key.
static String DEPRECATION_KEY
          Constant deprecation warning key.
static String FORK_KEY
          Constant fork key.
static String SOURCE_KEY
          Constant src directory key.
static String TARGET_KEY
          Constant classes target directory key.
static String VERBOSE_KEY
          Constant debug key.
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
JavacTask(Context context)
          Creation of a new JavacTask.
 
Method Summary
 void execute()
          Task execution.
protected  Context getContext()
          Get the project definition.
 void setClasspath(Path path)
          Set the compilation classpath.
 void setClasspathRef(String id)
          Set the id of the compilation classpath.
 void setDest(File destination)
          Set the destination directory.
 void setSrc(File source)
          Set the src directory.
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERBOSE_KEY

public static final String VERBOSE_KEY
Constant debug key.

See Also:
Constant Field Values

DEBUG_KEY

public static final String DEBUG_KEY
Constant debug key.

See Also:
Constant Field Values

FORK_KEY

public static final String FORK_KEY
Constant fork key.

See Also:
Constant Field Values

DEPRECATION_KEY

public static final String DEPRECATION_KEY
Constant deprecation warning key.

See Also:
Constant Field Values

SOURCE_KEY

public static final String SOURCE_KEY
Constant src directory key.

See Also:
Constant Field Values

TARGET_KEY

public static final String TARGET_KEY
Constant classes target directory key.

See Also:
Constant Field Values
Constructor Detail

JavacTask

public JavacTask(Context context)
Creation of a new JavacTask.

Parameters:
context - the project context
Method Detail

setClasspath

public void setClasspath(Path path)
Set the compilation classpath.

Parameters:
path - the classpath

setClasspathRef

public void setClasspathRef(String id)
Set the id of the compilation classpath.

Parameters:
id - the classpath reference

setDest

public void setDest(File destination)
Set the destination directory.

Parameters:
destination - the destination directory

setSrc

public void setSrc(File source)
Set the src directory.

Parameters:
source - the src directory

execute

public void execute()
Task execution.

Overrides:
execute in class Task

getContext

protected Context getContext()
Get the project definition.

Returns:
the build context