public class LogContains
extends org.apache.tools.ant.ProjectComponent
implements org.apache.tools.ant.taskdefs.condition.Condition
Works in conjunction with LogCapturer
and
needs the context provided by AntUnit.
Constructor and Description |
---|
LogContains() |
Modifier and Type | Method and Description |
---|---|
boolean |
eval() |
void |
setLevel(org.apache.tools.ant.taskdefs.Echo.EchoLevel echoLevel)
minimal log priority to consult.
|
void |
setMergeLines(boolean b)
Whether to merge messages into a single line or split them into
multiple lines.
|
void |
setText(String t)
Test the log shall contain.
|
public void setText(String t)
t
- text to look forpublic void setLevel(org.apache.tools.ant.taskdefs.Echo.EchoLevel echoLevel)
echoLevel
- minimal log prioritypublic void setMergeLines(boolean b)
b
- whether to merge messages into a single linepublic boolean eval()
eval
in interface org.apache.tools.ant.taskdefs.condition.Condition
Copyright © 2022 The Apache Software Foundation. All rights reserved.