|
terp - the ANT Tasks v1.3.304 |
|||||||||
| 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
com.codemesh.terp.ant.devpartner.DevPartnerTool
com.codemesh.terp.ant.devpartner.boundschecker.BoundsChecker
public class BoundsChecker
The taskwrapper for the DevPartner Boundschecker tool.
This task relies on the ^bc() executor to locate
the BoundsChecker executable. Currently, we only support BoundsChecker
on Windows with the Microsoft Visual C++ compiler. BoundsChecker itself
might further restrict this to a range of MSVC++ versions.
The BoundsChecker task is a lightweight wrapper around the BoundsChecker executable. Use this task to execute an instrumented executable or a normal executable invoking instrumented code.
In addition to generating a log file and optionally an XML file, this task
can analyze the generated XML result file and fail the build if it contains
any errors. Please see the documentation for the failOnError
and parseXml attributes for a more detailed description of
this process.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.codemesh.terp.ant.TerpAware |
|---|
TerpAware.Delegate |
| Field Summary |
|---|
| Fields inherited from class com.codemesh.terp.ant.devpartner.DevPartnerTool |
|---|
aware, ctx, EVAL, failOnError, options, TO_FILE, TO_INT, tool, toolSpec |
| 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 | |
|---|---|
BoundsChecker()
|
|
| Method Summary | |
|---|---|
BatchFileOption |
createBatch()
The option resulting in a /B switch. |
ConfigFileOption |
createConfig()
The option resulting in a /C switch. |
ExecutableOption |
createExecutable()
The option specifying the executable to analyze and, optionally, its arguments. |
BooleanToolOption |
createMinimize()
The option resulting in a /M switch. |
BooleanToolOption |
createNologo()
The option resulting in a /NOLOGO switch. |
OutOption |
createOut()
The option resulting in a /OUT switch. |
BooleanToolOption |
createSilent()
The option resulting in a /S switch. |
WorkingDirOption |
createWorkingDir()
The option resulting in a /W switch. |
XmlFileOption |
createXml()
The option resulting in a /X, /XS, or /XD switch. |
void |
execute()
|
java.lang.String |
getCode()
Returns the tool code. |
boolean |
getParseXml()
|
Version |
getVersion()
Returns the tool version. |
void |
setParseXml(java.lang.String parsexml)
Set to a value that can be evaluated to a boolean expression. |
| Methods inherited from class com.codemesh.terp.ant.devpartner.DevPartnerTool |
|---|
addOption, getContext, getIf, getOptions, getTool, getUnless, isFailOnError, satisfiesConditions, setContext, setFailOnError, setIf, setProject, setTool, setUnless |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BoundsChecker()
| Method Detail |
|---|
public void setParseXml(java.lang.String parsexml)
failOnError
attribute.
The default value of the parseXml atttribute is "true". Turn the attribute to "false"
if you want the build to succeed even if BoundsChecker discovers problems. Please note that the
proper way to handle this condition would be to disable the errors using a configuration file.
parsexml - a boolean expression.public boolean getParseXml()
public BatchFileOption createBatch()
public ConfigFileOption createConfig()
public ExecutableOption createExecutable()
public BooleanToolOption createMinimize()
public BooleanToolOption createNologo()
public OutOption createOut()
public BooleanToolOption createSilent()
public WorkingDirOption createWorkingDir()
public XmlFileOption createXml()
public java.lang.String getCode()
Tool
public Version getVersion()
Tool
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException
|
terp - the ANT Tasks v1.3.304 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||