|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.quattor.ant.PanCompilerTask
public class PanCompilerTask
An ant task which permits calling the pan compiler from an ant build file. This task allows all of the compiler parameters to be accessed and will optionally check dependency files before starting a build. See individual setter methods for the parameters which can be used in the build file.
| Field Summary | |
|---|---|
protected static java.lang.String |
debugIndent
|
| Fields inherited from class org.apache.tools.ant.Task |
|---|
target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
PanCompilerTask()
|
|
| Method Summary | |
|---|---|
void |
addConfiguredDebug(DebugPatterns debugPatterns)
Add the include and exclude patterns for selectively enabling/disabling the debugging functions (debug() and traceback()). |
void |
addConfiguredFileSet(org.apache.tools.ant.types.FileSet fileset)
Support nested fileset elements. |
void |
addConfiguredPath(org.apache.tools.ant.types.Path path)
Support nested path elements. |
void |
execute()
|
int |
getBatchSize()
|
int |
getNthread()
Return the number of threads used to compile the profiles. |
void |
setAnnotationBaseDirectory(java.io.File annotationBaseDirectory)
Set the directory base directory to use for relative paths for annotation output files. |
void |
setAnnotationDirectory(java.io.File annotationDirectory)
Set the directory in which the produced annotation files should be saved. |
void |
setBatchSize(int batchSize)
|
void |
setCallDepthLimit(int callDepthLimit)
The pan compiler can limit the call depth to avoid infinite recursion. |
void |
setCheckDependencies(boolean checkDependencies)
This any task can check machine profile dependencies to avoid processing machine profiles which are already up-to-date. |
void |
setDebugTask(int debugTask)
Setting this flag will print debugging information from the task itself. |
void |
setDeprecationLevel(int deprecationLevel)
Level at which deprecation warnings are issued. |
void |
setDepWriteEnabled(boolean depWriteEnabled)
Setting this flag will cause the compiler to write dependency files for the processed object templates. |
void |
setFailOnWarn(boolean failOnWarn)
Flag to indicate whether or not warnings should be treated as errors. |
void |
setForceBuild(boolean forceBuild)
Setting this option will force the compiler to build object templates even if the writing of the XML files and dependency files is turned off. |
void |
setFormatter(java.lang.String name)
Define which formatter will be used to write the machine profiles to disk. |
void |
setGzipOutput(boolean gzipOutput)
Indicate whether the produced machine profiles (if any) should be gzipped or not. |
void |
setIgnoreDependencyPattern(java.lang.String ignoreDependencyPattern)
Dependencies that must be ignored when selecting the profiles to rebuild. |
void |
setIncludeRoot(java.io.File includeroot)
Set the directory to use for the include globs. |
void |
setIncludes(java.lang.String includes)
Set the include globs to use for the pan compiler loadpath. |
void |
setIterationLimit(int iterationLimit)
The pan compiler allows an iteration limit to be set to avoid infinite loops. |
void |
setLogfile(java.io.File logfile)
Set the log file to use for logging. |
void |
setLogging(java.lang.String loggingFlags)
Enable the given types of logging. |
void |
setNthread(int nthread)
Set the number of threads to use in each of three separate task queues. |
void |
setOutputDirectory(java.io.File outputDirectory)
Set the output directory for generated machine profiles and dependency files. |
void |
setSessionDirectory(java.io.File sessionDirectory)
Set the 'session' directory to be used for the compilation. |
void |
setVerbose(boolean verbose)
Flag to indicate that extra information should be written to the standard output. |
void |
setXmlWriteEnabled(boolean xmlWriteEnabled)
Setting this flag will cause the pan compiler to write machine templates to disk. |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String debugIndent
| Constructor Detail |
|---|
public PanCompilerTask()
| Method Detail |
|---|
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionpublic void setIncludeRoot(java.io.File includeroot)
includeroot - File giving the root directory for the include globspublic void setIncludes(java.lang.String includes)
includes - String of comma- or space-separated file globspublic void addConfiguredPath(org.apache.tools.ant.types.Path path)
path - a configured Pathpublic void addConfiguredFileSet(org.apache.tools.ant.types.FileSet fileset)
fileset - a configured FileSetpublic void setCallDepthLimit(int callDepthLimit)
callDepthLimit - public void setDebugTask(int debugTask)
debugTask - flag to print task debugging informationpublic void addConfiguredDebug(DebugPatterns debugPatterns)
debugPatterns - configured instance with desired debug patternspublic void setDepWriteEnabled(boolean depWriteEnabled)
depWriteEnabled - flag to generate dependency filespublic void setIterationLimit(int iterationLimit)
iterationLimit - maximum number of permitted iterationspublic void setOutputDirectory(java.io.File outputDirectory)
outputDirectory - directory for produced filespublic void setSessionDirectory(java.io.File sessionDirectory)
sessionDirectory - session directory to use for the buildpublic void setXmlWriteEnabled(boolean xmlWriteEnabled)
xmlWriteEnabled - public void setCheckDependencies(boolean checkDependencies)
checkDependencies - public void setFormatter(java.lang.String name)
name - name of formatter to usepublic void setAnnotationDirectory(java.io.File annotationDirectory)
annotationDirectory - public void setAnnotationBaseDirectory(java.io.File annotationBaseDirectory)
annotationBaseDirectory - public int getNthread()
public void setNthread(int nthread)
nthread - number of threads per task queuepublic void setVerbose(boolean verbose)
verbose - public void setGzipOutput(boolean gzipOutput)
gzipOutput - flag indicating whether to gzip outputpublic void setIgnoreDependencyPattern(java.lang.String ignoreDependencyPattern)
ignoreDependencyPattern - regular expression used to match namespaced template names to
ignorepublic void setDeprecationLevel(int deprecationLevel)
deprecationLevel - level at which to give deprecation warningspublic void setFailOnWarn(boolean failOnWarn)
failOnWarn - setting the value true will cause compilations to fail on
warningspublic void setForceBuild(boolean forceBuild)
forceBuild - public void setLogging(java.lang.String loggingFlags)
loggingFlags - a comma-separated list of logging types to enablepublic void setLogfile(java.io.File logfile)
logfile - file to use for loggingpublic int getBatchSize()
public void setBatchSize(int batchSize)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||