com.finalist.tools.ant.taskdefs
Class LibAvailableTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended bycom.finalist.tools.ant.taskdefs.LibAvailableTask

public class LibAvailableTask
extends org.apache.tools.ant.Task

Checks if an external library exists in the specified directory and has the correct version, or otherwise checks out the correct library from CVS. This ant target has the following format:

 <checklib dir="${lib.dir}">
   <lib version="v1_4_1" file="shared/jakarta/ant/ant.jar" />
   <lib version="v1_4_1" file="shared/jakarta/ant/optional.jar" />
 </checklib>
 
Where 'version' is the required CVS revision tag and 'file' the relative path in CVS of the library file. If the attribute 'dir' of the checklib target is not specified, the default value "lib" is used.

Version:
$Revision: 1.1 $, $Date: 2004/03/01 18:55:00 $
Author:
Keesjan van Bunningen - Finalist IT Group bv

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
LibAvailableTask()
           
 
Method Summary
 void addLib(Lib lib)
          Add a nested jar element as required external library.
 void execute()
           
 void setDir(java.io.File directory)
          Optional destination directory, defaults to "lib".
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LibAvailableTask

public LibAvailableTask()
Method Detail

setDir

public void setDir(java.io.File directory)
Optional destination directory, defaults to "lib".

Parameters:
directory - the directory containing the library.

addLib

public void addLib(Lib lib)
Add a nested jar element as required external library.

Parameters:
lib - the external library file

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException


Copyright © 2003-2004 SourceForge. All Rights Reserved.