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(Object o) |
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, toStringcheckAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributesgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectfinalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic 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 InputStream getInputStream() throws IOException
getInputStream in class org.apache.tools.ant.types.ResourceIOExceptionpublic boolean isExists()
isExists in class org.apache.tools.ant.types.Resourcepublic boolean equals(Object o)
equals in class org.apache.tools.ant.types.ResourceCopyright © 2023 The Apache Software Foundation. All rights reserved.