|
|||||||||
| Home >> All >> com >> inigoserrano >> [ isdirvalidator overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.inigoserrano.isdirvalidator
Class ISDirectory

java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.inigoserrano.isdirvalidator.ISDirectory
- public class ISDirectory
- extends org.apache.tools.ant.Task
Used to handled the isdircheck task in Ant
This program is license under the terms of the GNU GPL v 2.0 License
- Version:
- 2.0.1
| Field Summary | |
private java.lang.String |
baseDir
The directory that is the base of all the operations |
private java.lang.String |
dir
The directory to check |
private java.util.Vector |
isfilePattermStore
To Store the ISFilePatterm objects |
private java.util.Vector |
isfileStore
To Store the ISFile objects |
private java.util.Vector |
issubDirectoryPattermStore
To Store the ISSubDirectoryPatterm objects |
private boolean |
recursive
Recursive directory check |
| 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 | |
ISDirectory()
Default Constructor |
|
| Method Summary | |
void |
addIsfile(ISFile newISFile)
Adds one ISFile to the store |
void |
addIsfilepatterm(ISFilePatterm newISFilePatterm)
Adds one ISFilePatterm to the store |
void |
addIssubdirectorypatterm(ISSubDirectoryPatterm newPatterm)
Adds one ISSubDirectoryPatterm to the store |
private void |
checkOneDirectory(Directory theDirectory)
Check one directory and throws the appropiate Ant Exceptions if some errors ocurr. |
private Directory |
createDirectoryObject(java.lang.String baseDir)
Creates one Directory object (worker bean) to check the conditions. |
void |
execute()
Execute the task, adds all the ISFile and ISFilePatterm objects to the worker been and then check if it is valid |
private java.util.Vector |
getSubDirectories()
Return a Vector with String with the name of all the subdirectories (recursive) |
void |
setDir(java.lang.String newDir)
Sets the dir attribute, only the directory name, not necesary the path |
void |
setRecursive(boolean isRecursive)
Sets the recursice attribute |
| Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, 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 |
dir
private java.lang.String dir
- The directory to check
recursive
private boolean recursive
- Recursive directory check
baseDir
private java.lang.String baseDir
- The directory that is the base of all the operations
isfileStore
private java.util.Vector isfileStore
- To Store the ISFile objects
isfilePattermStore
private java.util.Vector isfilePattermStore
- To Store the ISFilePatterm objects
issubDirectoryPattermStore
private java.util.Vector issubDirectoryPattermStore
- To Store the ISSubDirectoryPatterm objects
| Constructor Detail |
ISDirectory
public ISDirectory()
- Default Constructor
| Method Detail |
setDir
public void setDir(java.lang.String newDir)
- Sets the dir attribute, only the directory name, not necesary the path
setRecursive
public void setRecursive(boolean isRecursive)
- Sets the recursice attribute
addIsfile
public void addIsfile(ISFile newISFile)
- Adds one ISFile to the store
addIsfilepatterm
public void addIsfilepatterm(ISFilePatterm newISFilePatterm)
- Adds one ISFilePatterm to the store
addIssubdirectorypatterm
public void addIssubdirectorypatterm(ISSubDirectoryPatterm newPatterm)
- Adds one ISSubDirectoryPatterm to the store
getSubDirectories
private java.util.Vector getSubDirectories()
- Return a Vector with String with the name of all the subdirectories
(recursive)
createDirectoryObject
private Directory createDirectoryObject(java.lang.String baseDir) throws org.apache.tools.ant.BuildException
- Creates one Directory object (worker bean) to check the conditions. It
creates the object and fill all the patterms
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Execute the task, adds all the ISFile and ISFilePatterm objects to the
worker been and then check if it is valid
checkOneDirectory
private void checkOneDirectory(Directory theDirectory)
- Check one directory and throws the appropiate Ant Exceptions
if some errors ocurr.
|
|||||||||
| Home >> All >> com >> inigoserrano >> [ isdirvalidator overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC