destDir
protected File destDir
filesets
protected Vector filesets
mapperElement
protected Mapper mapperElement
srcIsFirst
protected boolean srcIsFirst
Has <srcfile> been specified before <targetfile>
type
protected String type
add
public void add(FileNameMapper fileNameMapper)
Add a nested FileNameMapper.
fileNameMapper
- the mapper to add.
- Ant 1.6.3
addDirset
public void addDirset(DirSet set)
Add a set of directories upon which to operate.
set
- the DirSet to add.
- Ant 1.6
addFilelist
public void addFilelist(FileList list)
Add a list of source files upon which to operate.
list
- the FileList to add.
addFileset
public void addFileset(FileSet set)
Add a set of files upon which to operate.
set
- the FileSet to add.
checkConfiguration
protected void checkConfiguration()
Check the configuration of this ExecuteOn instance.
- checkConfiguration in interface ExecTask
createMapper
public Mapper createMapper()
throws BuildException
Create a nested Mapper element to use for mapping
source files to target files.
Mapper
.
BuildException
- if more than one mapper is defined.
createSrcfile
public Commandline.Marker createSrcfile()
Create a placeholder indicating where on the command line
the name of the source file should be inserted.
Commandline.Marker
.
createTargetfile
public Commandline.Marker createTargetfile()
Create a placeholder indicating where on the command line
the name of the target file should be inserted.
Commandline.Marker
.
getCommandline
protected String[] getCommandline(String srcFile,
File baseDir)
Construct the command line for serial execution.
srcFile
- The filename to add to the commandline.baseDir
- filename is relative to this dir.
- the command line in the form of a String[].
getCommandline
protected String[] getCommandline(String[] srcFiles,
File[] baseDirs)
Construct the command line for parallel execution.
srcFiles
- The filenames to add to the commandline.baseDirs
- filenames are relative to this dir.
- the command line in the form of a String[].
getDirs
protected String[] getDirs(File baseDir,
DirectoryScanner ds)
Return the list of Directories from this DirectoryScanner that
should be included on the command line.
baseDir
- the File base directory.ds
- the DirectoryScanner to use for file scanning.
- a String[] containing the directory names.
getFiles
protected String[] getFiles(File baseDir,
DirectoryScanner ds)
Return the list of files from this DirectoryScanner that should
be included on the command line.
baseDir
- the File base directory.ds
- the DirectoryScanner to use for file scanning.
- a String[] containing the filenames.
getFilesAndDirs
protected String[] getFilesAndDirs(FileList list)
Return the list of files or directories from this FileList that
should be included on the command line.
list
- the FileList to check.
- a String[] containing the directory names.
- Ant 1.6.2
runParallel
protected void runParallel(Execute exe,
Vector fileNames,
Vector baseDirs)
throws IOException,
BuildException
Run the command in "parallel" mode, making sure that at most
maxParallel sourcefiles get passed on the command line.
exe
- the Executable to use.fileNames
- the Vector of filenames.baseDirs
- the Vector of base directories corresponding to fileNames.
BuildException
- on other errors.
- Ant 1.6
setAddsourcefile
public void setAddsourcefile(boolean b)
Set whether to send the source file name on the command line.
Defaults to
true
.
b
- whether to add the source file to the command line.
- Ant 1.6
setDest
public void setDest(File destDir)
Specify the directory where target files are to be placed.
destDir
- the File object representing the destination directory.
setForce
public void setForce(boolean b)
Set whether to bypass timestamp comparisons for target files.
b
- whether to bypass timestamp comparisons.
- Ant 1.6.3
setForwardslash
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.
forwardSlash
- whether the forward slash will be forced.
setIgnoremissing
public void setIgnoremissing(boolean b)
Set whether to ignore nonexistent files from filelists.
b
- whether to ignore missing files.
- Ant 1.6.2
setMaxParallel
public void setMaxParallel(int max)
Limit the command line length by passing at maximum this many
sourcefiles at once to the command.
Set to <= 0 for unlimited - this is the default.
max
- int
maximum number of sourcefiles
passed to the executable.
- Ant 1.6
setParallel
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. Defaults to false.
parallel
- whether to run in parallel.
setRelative
public void setRelative(boolean relative)
Set whether the filenames should be passed on the command line as
absolute or relative pathnames. Paths are relative to the base
directory of the corresponding fileset for source files or the
dest attribute for target files.
relative
- whether to pass relative pathnames.
setSkipEmptyFilesets
public void setSkipEmptyFilesets(boolean skip)
Set whether empty filesets will be skipped. If true and
no source files have been found or are newer than their
corresponding target files, the command will not be run.
skip
- whether to skip empty filesets.
setType
public void setType(ExecuteOn.FileDirBoth type)
Set whether the command works only on files, directories or both.
type
- a FileDirBoth EnumeratedAttribute.
setVerbose
public void setVerbose(boolean b)
Set whether to operate in verbose mode.
If true, a verbose summary will be printed after execution.
b
- whether to operate in verbose mode.
- Ant 1.6
setupRedirector
protected void setupRedirector()
Set up the I/O Redirector.
- setupRedirector in interface ExecTask