public class LogContent
extends org.apache.tools.ant.types.Resource
Constructor and Description |
---|
LogContent()
Create a new LogContent resource.
|
LogContent(org.apache.tools.ant.Project p,
org.apache.tools.ant.types.LogLevel level)
Create a new LogContent resource, specifying Project and log level.
|
LogContent(org.apache.tools.ant.Project p,
org.apache.tools.ant.types.LogLevel level,
boolean mergeLines)
Create a new LogContent resource, specifying Project and log level.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.io.InputStream |
getInputStream() |
boolean |
isExists() |
void |
setLevel(org.apache.tools.ant.types.LogLevel level)
Set the desired log level.
|
void |
setMergeLines(boolean b)
Whether to merge messages into a single line or split them into
multiple lines.
|
as, asOptional, clone, compareTo, getLastModified, getMagicNumber, getName, getOutputStream, getRef, getSize, hashCode, isDirectory, isFilesystemOnly, iterator, setDirectory, setExists, setLastModified, setName, setRefid, setSize, size, toLongString, toString
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public LogContent()
public LogContent(org.apache.tools.ant.Project p, org.apache.tools.ant.types.LogLevel level)
This constructor is provided primarily for convenience during programmatic usage.
p
- the test projectlevel
- the LogLevel.public LogContent(org.apache.tools.ant.Project p, org.apache.tools.ant.types.LogLevel level, boolean mergeLines)
This constructor is provided primarily for convenience during programmatic usage.
p
- the test projectlevel
- the LogLevel.mergeLines
- whether to merge messages into a single line
or split them into multiple linespublic final void setLevel(org.apache.tools.ant.types.LogLevel level)
level
- a LogLevel enumerated attribute.public final void setMergeLines(boolean b)
b
- whether to merge messages into a single linepublic java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in class org.apache.tools.ant.types.Resource
java.io.IOException
public boolean isExists()
isExists
in class org.apache.tools.ant.types.Resource
public boolean equals(java.lang.Object o)
equals
in class org.apache.tools.ant.types.Resource