|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task com.finalist.tools.ant.taskdefs.CheckoutLibTask
This task is used to checkout 3rd-party libraries. The libraries that are to be checked out are read from the libXmlFile specified in the build.xml file. They are checked out to the libDir which is also specified in the build.xml file. In the versions.properties file the tags of the checked out files are stored. If a stored tag does not comply with the tag specified in the libXmlFile, the file is deleted and checked out again to get the correct version. Files that are removed from the libXmlFile but still exist in the libDir will be removed.
An individual library may be fetched from one of two kinds of source:
Usage in build.xml:
<target description="CVS-checkout for needed JARs." name="checkout.lib" depends="init.ant">
<taskdef name="checkout"
classname="com.finalist.tools.ant.taskdefs.CheckoutLibTask"
classpathref="ant.classpath"/>
<checkout libXmlFile="lib.xml" libDir="${lib.dir}"/>
</target>
Field Summary | |
static java.lang.String |
LIBVERSION_PROPERTIES_FILENAME
The name of the properties file created by this task, containing the latest checked-out lib versions. |
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 | |
CheckoutLibTask()
|
Method Summary | |
void |
execute()
Method which is called by ant to execute the task. |
void |
setLibDir(java.io.File libDir)
Optional destination directory, defaults to "lib". |
void |
setLibXmlFile(java.io.File libXmlFile)
Setter for property libFile. |
void |
setTmpDir(java.io.File tmpDir)
Setter for property tmpDir. |
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 |
Field Detail |
public static final java.lang.String LIBVERSION_PROPERTIES_FILENAME
Constructor Detail |
public CheckoutLibTask()
Method Detail |
public void execute() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- Exception which is thrown to stop the build process and display an error messagepublic void setLibDir(java.io.File libDir)
libDir
- Directory in which the checked out libraries should be stored.public void setLibXmlFile(java.io.File libXmlFile)
libXmlFile
- The lib file which specifies what files are to be checked outpublic void setTmpDir(java.io.File tmpDir)
tmpDir
- New value of property tmpDir.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |