public final class AntTask
extends org.apache.tools.ant.Task
Constructor and Description |
---|
AntTask() |
Modifier and Type | Method and Description |
---|---|
void |
add(org.apache.tools.ant.types.ResourceCollection rc)
Set of class files to check
|
void |
addText(String text)
Support for API signatures list as nested text
|
BundledSignaturesType |
createBundledSignatures() |
org.apache.tools.ant.types.Path |
createClasspath()
Classpath as
|
org.apache.tools.ant.types.resources.FileResource |
createSignaturesFile()
Single file with API signatures as
|
org.apache.tools.ant.types.FileList |
createSignaturesFileList()
List of files with API signatures as
|
org.apache.tools.ant.types.FileSet |
createSignaturesFileSet()
Set of files with API signatures as
|
void |
execute() |
void |
setBundledSignatures(String name)
A bundled signatures name
|
void |
setClasspath(org.apache.tools.ant.types.Path classpath)
Classpath as classpath= attribute
|
void |
setClasspathRef(org.apache.tools.ant.types.Reference r)
Classpath as classpathRef= attribute
|
void |
setDir(File dir)
Sets a directory as base for class files.
|
void |
setFailOnMissingClasses(boolean failOnMissingClasses)
Fail the build, if a referenced class is missing.
|
void |
setFailOnUnresolvableSignatures(boolean failOnUnresolvableSignatures)
Fail the build if a signature is not resolving.
|
void |
setFailOnUnsupportedJava(boolean failOnUnsupportedJava)
Fail the build, if the bundled ASM library cannot read the class file format
of the runtime library or the runtime library cannot be discovered.
|
void |
setIgnoreEmptyFileSet(boolean ignoreEmptyFileset)
Ignore empty fileset/resource collection and print a warning instead.
|
void |
setInternalRuntimeForbidden(boolean internalRuntimeForbidden)
Forbids calls to classes from the internal java runtime (like sun.misc.Unsafe)
Defaults to
false . |
void |
setRestrictClassFilename(boolean restrictClassFilename)
Automatically restrict resource names included to files with a name ending in '.class'.
|
void |
setSignaturesFile(File file)
A file with API signatures signaturesFile= attribute
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
public void add(org.apache.tools.ant.types.ResourceCollection rc)
public void setDir(File dir)
public org.apache.tools.ant.types.FileSet createSignaturesFileSet()
public org.apache.tools.ant.types.FileList createSignaturesFileList()
public org.apache.tools.ant.types.resources.FileResource createSignaturesFile()
public void setSignaturesFile(File file)
public void addText(String text)
public BundledSignaturesType createBundledSignatures()
public void setBundledSignatures(String name)
public void setClasspath(org.apache.tools.ant.types.Path classpath)
public void setClasspathRef(org.apache.tools.ant.types.Reference r)
public org.apache.tools.ant.types.Path createClasspath()
public void setFailOnUnsupportedJava(boolean failOnUnsupportedJava)
false
.public void setFailOnMissingClasses(boolean failOnMissingClasses)
true
.public void setFailOnUnresolvableSignatures(boolean failOnUnresolvableSignatures)
true
.public void setInternalRuntimeForbidden(boolean internalRuntimeForbidden)
false
.public void setRestrictClassFilename(boolean restrictClassFilename)
true
.public void setIgnoreEmptyFileSet(boolean ignoreEmptyFileset)
false
.Copyright © 2013–2016. All rights reserved.