org.apache.ant.antunit
Class LogContains

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.ant.antunit.LogContains
All Implemented Interfaces:
java.lang.Cloneable, org.apache.tools.ant.taskdefs.condition.Condition

public class LogContains
extends org.apache.tools.ant.ProjectComponent
implements org.apache.tools.ant.taskdefs.condition.Condition

A condition that tests the log output of the current project for a given string.

Works in conjunction with LogCapturer and needs the context provided by AntUnit.


Field Summary
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
LogContains()
           
 
Method Summary
 boolean eval()
           
 void setLevel(org.apache.tools.ant.taskdefs.Echo.EchoLevel echoLevel)
          minimal log priority to consult.
 void setText(java.lang.String t)
          Test the log shall contain.
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogContains

public LogContains()
Method Detail

setText

public void setText(java.lang.String t)
Test the log shall contain.


setLevel

public void setLevel(org.apache.tools.ant.taskdefs.Echo.EchoLevel echoLevel)
minimal log priority to consult.


eval

public boolean eval()
Specified by:
eval in interface org.apache.tools.ant.taskdefs.condition.Condition


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.