org.apache.ant.antunit
Class ResourceExists

java.lang.Object
  extended by ProjectComponent
      extended by org.apache.ant.antunit.ResourceExists

public class ResourceExists
extends ProjectComponent

A condition that tests whether a given resource exists.

Since:
AntUnit 1.2

Constructor Summary
ResourceExists()
           
 
Method Summary
 void add(Resource r)
          The resource to check as nested element.
 boolean eval()
           
 void setResource(Resource r)
          The resource to check as attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceExists

public ResourceExists()
Method Detail

setResource

public void setResource(Resource r)
The resource to check as attribute.

Exactly one resource must be specfied either as attribute or nested element.


add

public void add(Resource r)
The resource to check as nested element.

Exactly one resource must be specfied either as attribute or nested element.


eval

public boolean eval()