net.sf.fikin.ant.types
Class Depends

java.lang.Object
  extended by net.sf.fikin.ant.types.IfUnless
      extended by net.sf.fikin.ant.types.Depends
All Implemented Interfaces:
Type

public class Depends
extends IfUnless

Provide with simple location="..." attribute which later on can be used for dependency (timestamping) checks. created on Dec 28, 2006

Since:
Version:
$Revision: 1.3 $
Author:
fiykov

Constructor Summary
Depends()
           
 
Method Summary
 void check(org.apache.tools.ant.Task task)
          test that name has been set
 java.io.File getLocation()
          get the file set as location if nay
 void setLocation(java.io.File file)
          set parameter's location
 
Methods inherited from class net.sf.fikin.ant.types.IfUnless
setIf, setUnless, shouldUse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Depends

public Depends()
Method Detail

setLocation

public void setLocation(java.io.File file)
                 throws java.net.MalformedURLException
set parameter's location

Parameters:
file -
Throws:
java.net.MalformedURLException
Ant Task Param Required:
true

getLocation

public java.io.File getLocation()
get the file set as location if nay

Returns:
file if location is set, otherwise null

check

public void check(org.apache.tools.ant.Task task)
           throws org.apache.tools.ant.BuildException
test that name has been set

Parameters:
task - is enclosing ant task
Throws:
org.apache.tools.ant.BuildException


Copyright © 2003-2007 Nikolay Fiykov. All Rights Reserved.