|
||||||||||
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 net.dpml.tools.tasks.GenericTask
public class GenericTask
Prepare the target build directory based on content presented under the ${basedir}/src and ${basedir}/etc directories.
Field Summary | |
---|---|
static String |
ASC_EXT
ASC file type. |
static String |
GPG_EXE_KEY
Constant key for the GPG exe name. |
static String |
MD5_EXT
MD5 file type. |
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 | |
---|---|
GenericTask()
|
Method Summary | |
---|---|
void |
asc(File file)
Creation of an ASC signature relative to a supplied file. |
void |
checksum(File file)
Create an MD5 checksum file relative to the supplied file. |
protected void |
copy(File src,
File destination,
boolean filtering,
String includes,
String excludes)
Utility operation to copy a file from a source to a destination. |
protected void |
deleteDir(File dir)
Utility operation to delete a directory . |
Context |
getContext()
Get the project context. |
protected Library |
getLibrary()
Get the library. |
protected Resource |
getResource()
Get the project definition. |
void |
init()
Initialize the task. |
protected boolean |
isInitialized()
Return the initialized state of the task. |
protected void |
mkDir(File dir)
Utility operation to create a new directory if it does not exist. |
Methods inherited from class org.apache.tools.ant.Task |
---|
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
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 String GPG_EXE_KEY
public static final String MD5_EXT
public static final String ASC_EXT
Constructor Detail |
---|
public GenericTask()
Method Detail |
---|
public void init()
init
in class Task
protected boolean isInitialized()
protected Resource getResource()
protected Library getLibrary()
public Context getContext()
protected void mkDir(File dir)
dir
- the directory to createprotected void copy(File src, File destination, boolean filtering, String includes, String excludes)
src
- the src filedestination
- the destination filefiltering
- if true apply filtering during the copyincludes
- the includes specificationexcludes
- the excludes specificationprotected void deleteDir(File dir)
dir
- the directory to deletepublic void checksum(File file)
file
- the file from which a checksum signature will be generatedpublic void asc(File file)
file
- the file to sign
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |