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
addDirset
public void addDirset(DirSet set)
Adds directories to operate on.
set
- the DirSet to add.
- Ant 1.6
addFilelist
public void addFilelist(FileList list)
Source files to operate upon.
addFileset
public void addFileset(FileSet set)
Source files to operate upon.
checkConfiguration
protected void checkConfiguration()
- checkConfiguration in interface ExecTask
- using taskName here is brittle, as a user could override it.
this should probably be modified to use the classname instead.
createMapper
public Mapper createMapper()
throws BuildException
Mapper to use for mapping source files to target files.
createSrcfile
public Commandline.Marker createSrcfile()
Marker that indicates where the name of the source file should
be put on the command line.
createTargetfile
public Commandline.Marker createTargetfile()
Marker that indicates where the name of the target file should
be put on the command line.
getCommandline
protected String[] getCommandline(String srcFile,
File baseDir)
Construct the command line for serial execution.
srcFile
- The filename to add to the commandlinebaseDir
- filename is relative to this dir
getCommandline
protected String[] getCommandline(String[] srcFiles,
File[] baseDirs)
Construct the command line for parallel execution.
srcFiles
- The filenames to add to the commandlinebaseDirs
- filenames are relative to this dir
getDirs
protected String[] getDirs(File baseDir,
DirectoryScanner ds)
Return the list of Directories from this DirectoryScanner that
should be included on the command line.
getFiles
protected String[] getFiles(File baseDir,
DirectoryScanner ds)
Return the list of files from this DirectoryScanner that should
be included on the command line.
getFilesAndDirs
protected String[] getFilesAndDirs(FileList list)
Return the list of files or directories from this FileList that
should be included on the command line.
- Ant 1.6.2
runExec
protected void runExec(Execute exe)
throws BuildException
Run the command using the given Execute instance. This may be
overridden by subclasses
- runExec in interface ExecTask
exe
- instance of Execute to run
BuildException
- if the new process could not be started
only if failIfExecFails is set to true (the default)
runParallel
protected void runParallel(Execute exe,
Vector fileNames,
Vector baseDirs)
throws IOException,
BuildException
Runs the command in "parallel" mode, making sure that at most
maxParallel sourcefiles get passed on the command line.
- Ant 1.6
setAddsourcefile
public void setAddsourcefile(boolean b)
Whether to send the source file name on the command line.
Defaults to
true
.
- Ant 1.6
setDest
public void setDest(File destDir)
The directory where target files are to be placed.
setForwardslash
public void setForwardslash(boolean forwardSlash)
The source and target file names on Windows and OS/2 must use
forward slash as file separator.
setIgnoremissing
public void setIgnoremissing(boolean b)
Whether to ignore nonexistent files from filelists.
- 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.
- Ant 1.6
setParallel
public void setParallel(boolean parallel)
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.
setRelative
public void setRelative(boolean relative)
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.
setSkipEmptyFilesets
public void setSkipEmptyFilesets(boolean skip)
If no source files have been found or are newer than their
corresponding target files, do not run the command.
setType
public void setType(ExecuteOn.FileDirBoth type)
Whether the command works only on files, directories or both?
setVerbose
public void setVerbose(boolean b)
Whether to print a verbose summary after execution.
- Ant 1.6
setupRedirector
protected void setupRedirector()
Set up properties on the redirector that we needed to store locally.
- setupRedirector in interface ExecTask