Method Summary |
|
public void | add(ResourceCollection rc) Add a collection of resources upon which to operate. |
public void | add(FileNameMapper fileNameMapper) Add a nested FileNameMapper. |
public void | addDirset(DirSet set) Add a set of directories upon which to operate. |
public void | addFilelist(FileList list) Add a list of source files upon which to operate. |
public void | addFileset(FileSet set) Add a set of files upon which to operate. |
protected void | checkConfiguration() Check the configuration of this ExecuteOn instance. |
protected ExecuteStreamHandler | createHandler() Create the ExecuteStreamHandler instance that will be used
during execution. |
public Mapper | createMapper() Create a nested Mapper element to use for mapping
source files to target files. |
public Commandline.Marker | createSrcfile() Create a placeholder indicating where on the command line
the name of the source file should be inserted. |
public Commandline.Marker | createTargetfile() Create a placeholder indicating where on the command line
the name of the target file should be inserted. |
protected String[] | getCommandline(String[] srcFiles, File[] baseDirs) Construct the command line for parallel execution.
Parameters: srcFiles - The filenames to add to the commandline. Parameters: baseDirs - filenames are relative to this dir. |
protected String[] | getCommandline(String srcFile, File baseDir) Construct the command line for serial execution.
Parameters: srcFile - The filename to add to the commandline. Parameters: baseDir - filename is relative to this dir. |
protected String[] | getDirs(File baseDir, DirectoryScanner ds) Return the list of Directories from this DirectoryScanner that
should be included on the command line.
Parameters: baseDir - the File base directory. Parameters: ds - the DirectoryScanner to use for file scanning. |
protected String[] | getFiles(File baseDir, DirectoryScanner ds) Return the list of files from this DirectoryScanner that should
be included on the command line.
Parameters: baseDir - the File base directory. Parameters: ds - the DirectoryScanner to use for file scanning. |
protected String[] | getFilesAndDirs(FileList list) Return the list of files or directories from this FileList that
should be included on the command line.
Parameters: list - the FileList to check. |
protected void | runExec(Execute exe) Run the specified Execute object. |
protected void | runParallel(Execute exe, Vector fileNames, Vector baseDirs) Run the command in "parallel" mode, making sure that at most
maxParallel sourcefiles get passed on the command line. |
public void | setAddsourcefile(boolean b) Set whether to send the source file name on the command line. |
public void | setDest(File destDir) Specify the directory where target files are to be placed. |
public void | setForce(boolean b) Set whether to bypass timestamp comparisons for target files. |
public void | setForwardslash(boolean forwardSlash) Set whether the source and target file names on Windows and OS/2
must use the forward slash as file separator. |
public void | setIgnoremissing(boolean b) Set whether to ignore nonexistent files from filelists. |
public void | setMaxParallel(int max) Limit the command line length by passing at maximum this many
sourcefiles at once to the command. |
public void | setParallel(boolean parallel) Set whether to execute in parallel mode.
If true, run the command only once, appending all files as arguments.
If false, command will be executed once for every file. |
public void | setRelative(boolean relative) Set whether the filenames should be passed on the command line as
absolute or relative pathnames. |
public void | setSkipEmptyFilesets(boolean skip) Set whether empty filesets will be skipped. |
public void | setType(FileDirBoth type) Set whether the command works only on files, directories or both. |
public void | setVerbose(boolean b) Set whether to operate in verbose mode. |
protected void | setupRedirector() Set up the I/O Redirector. |