| Modifier and Type | Class and Description |
|---|---|
| public static class | ExecuteOn.FileDirBoth
Enumerated attribute with the values "file", "dir" and "both" for the type attribute. |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| protected File | |
| protected Vector | |
| private boolean | |
| private boolean | |
| private boolean | |
| protected FileNameMapper | |
| protected Mapper | |
| private int | |
| private boolean | |
| private boolean | |
| private Union | |
| private boolean | |
| protected Commandline. | |
| protected boolean | srcIsFirst
Has <srcfile> been specified before <targetfile> |
| protected Commandline. | |
| protected String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(ResourceCollection
resource collection to add. rc)Add a collection of resources upon which to operate. |
| public void | |
| public void | |
| public void | |
| public void | |
| protected void | checkConfiguration()
Overrides org. |
| protected ExecuteStreamHandler | Returns: ExecuteStreamHandler.Overrides org. |
| public Mapper | Returns: Mapper.Create a nested Mapper element to use for mapping source files to target files. |
| public Commandline. | Returns: Commandline.Marker.Create a placeholder indicating where on the command line the name of the source file should be inserted. |
| public Commandline. | Returns: Commandline.Marker.Create a placeholder indicating where on the command line the name of the target file should be inserted. |
| protected String[] | Returns: the command line in the form of a String[].The filenames to add to the commandline. srcFiles, File[] filenames are relative to this dir. baseDirs)Construct the command line for parallel execution. |
| protected String[] | Returns: the command line in the form of a String[].The filename to add to the commandline. srcFile, File filename is relative to this dir. baseDir)Construct the command line for serial execution. |
| protected String[] | Returns: a String[] containing the directory names.the File base directory. baseDir, DirectoryScanner the DirectoryScanner to use for file scanning. ds)Return the list of Directories from this DirectoryScanner that should be included on the command line. |
| protected String[] | Returns: a String[] containing the filenames.the File base directory. baseDir, DirectoryScanner the DirectoryScanner to use for file scanning. ds)Return the list of files from this DirectoryScanner that should be included on the command line. |
| protected String[] | Returns: a String[] containing the directory names.the FileList to check. list)Return the list of files or directories from this FileList that should be included on the command line. |
| private static void | insertTargetFiles(String[] targetFiles, String[] arguments, int insertPosition, String prefix, String suffix)
Inserts target file names (which are already absolute paths) into the list of arguments, taking prefix and postfix into account. |
| private void | logSkippingFileset(String
the current type. currentType, DirectoryScanner the directory scanner. ds, File the dir base base)log a message for skipping a fileset. |
| private String[] | |
| protected void | |
| protected void | |
| public void | setAddsourcefile(boolean
whether to add the source file to the command line. b)Set whether to send the source file name on the command line. |
| public void | |
| public void | setForce(boolean
whether to bypass timestamp comparisons. b)Set whether to bypass timestamp comparisons for target files. |
| public void | setForwardslash(boolean
whether the forward slash will be forced. 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
whether to ignore missing files. b)Set whether to ignore nonexistent files from filelists. |
| public void | setMaxParallel(int
int maximum number of sourcefiles
passed to the executable.Limit the command line length by passing at maximum this many sourcefiles at once to the command. |
| public void | |
| public void | setRelative(boolean
whether to pass relative pathnames. relative)Set whether the filenames should be passed on the command line as absolute or relative pathnames. |
| public void | setSkipEmptyFilesets(boolean
whether to skip empty filesets. skip)Set whether empty filesets will be skipped. |
| public void | setType(ExecuteOn.
a FileDirBoth EnumeratedAttribute. typeSet whether the command works only on files, directories or both. |
| protected void | setupRedirector()
Overrides org. |
| public void |
| addSourceFile | back to summary |
|---|---|
| private boolean addSourceFile | |
| destDir | back to summary |
|---|---|
| protected File destDir | |
| filesets | back to summary |
|---|---|
| protected Vector<AbstractFileSet> filesets | |
| force | back to summary |
|---|---|
| private boolean force | |
| forwardSlash | back to summary |
|---|---|
| private boolean forwardSlash | |
| ignoreMissing | back to summary |
|---|---|
| private boolean ignoreMissing | |
| mapper | back to summary |
|---|---|
| protected FileNameMapper mapper | |
| mapperElement | back to summary |
|---|---|
| protected Mapper mapperElement | |
| maxParallel | back to summary |
|---|---|
| private int maxParallel | |
| parallel | back to summary |
|---|---|
| private boolean parallel | |
| relative | back to summary |
|---|---|
| private boolean relative | |
| resources | back to summary |
|---|---|
| private Union resources | |
| skipEmpty | back to summary |
|---|---|
| private boolean skipEmpty | |
| srcFilePos | back to summary |
|---|---|
| protected Commandline. | |
| srcIsFirst | back to summary |
|---|---|
| protected boolean srcIsFirst Has <srcfile> been specified before <targetfile> | |
| targetFilePos | back to summary |
|---|---|
| protected Commandline. | |
| type | back to summary |
|---|---|
| protected String type | |
| verbose | back to summary |
|---|---|
| private boolean verbose | |
| ExecuteOn | back to summary |
|---|---|
| public ExecuteOn() | |
| add | back to summary |
|---|---|
| public void add(ResourceCollection rc) Add a collection of resources upon which to operate.
| |
| add | back to summary |
|---|---|
| public void add(FileNameMapper fileNameMapper) Add a nested FileNameMapper.
| |
| addDirset | back to summary |
|---|---|
| public void addDirset(DirSet set) Add a set of directories upon which to operate.
| |
| addFilelist | back to summary |
|---|---|
| public void addFilelist(FileList list) Add a list of source files upon which to operate.
| |
| addFileset | back to summary |
|---|---|
| public void addFileset(FileSet set) Add a set of files upon which to operate.
| |
| checkConfiguration | back to summary |
|---|---|
| protected void checkConfiguration() Overrides org. Check the configuration of this ExecuteOn instance.
| |
| createHandler | back to summary |
|---|---|
| protected ExecuteStreamHandler createHandler() throws BuildException Overrides org. Create the ExecuteStreamHandler instance that will be used during execution.
| |
| createMapper | back to summary |
|---|---|
| public Mapper createMapper() throws BuildException Create a nested Mapper element to use for mapping source files to target files.
| |
| createSrcfile | back to summary |
|---|---|
| public Commandline. Create a placeholder indicating where on the command line the name of the source file should be inserted.
| |
| createTargetfile | back to summary |
|---|---|
| public Commandline. Create a placeholder indicating where on the command line the name of the target file should be inserted.
| |
| getCommandline | back to summary |
|---|---|
| protected String[] getCommandline(String[] srcFiles, File[] baseDirs) Construct the command line for parallel execution. | |
| getCommandline | back to summary |
|---|---|
| protected String[] getCommandline(String srcFile, File baseDir) Construct the command line for serial execution. | |
| getDirs | back to summary |
|---|---|
| protected String[] getDirs(File baseDir, DirectoryScanner ds) Return the list of Directories from this DirectoryScanner that should be included on the command line.
| |
| getFiles | back to summary |
|---|---|
| protected String[] getFiles(File baseDir, DirectoryScanner ds) Return the list of files from this DirectoryScanner that should be included on the command line.
| |
| getFilesAndDirs | back to summary |
|---|---|
| protected String[] getFilesAndDirs(FileList list) Return the list of files or directories from this FileList that should be included on the command line. | |
| insertTargetFiles | back to summary |
|---|---|
| private static void insertTargetFiles(String[] targetFiles, String[] arguments, int insertPosition, String prefix, String suffix) Inserts target file names (which are already absolute paths) into the list of arguments, taking prefix and postfix into account. | |
| logSkippingFileset | back to summary |
|---|---|
| private void logSkippingFileset(String currentType, DirectoryScanner ds, File base) log a message for skipping a fileset.
| |
| restrict | back to summary |
|---|---|
| private String[] restrict(String[] s, File baseDir) | |
| runExec | back to summary |
|---|---|
| protected void runExec(Execute exe) throws BuildException Overrides org. Run the specified Execute object.
| |
| runParallel | back to summary |
|---|---|
| protected void runParallel(Execute exe, Vector<String> fileNames, Vector<File> baseDirs) throws IOException, BuildException Run the command in "parallel" mode, making sure that at most maxParallel sourcefiles get passed on the command line.
| |
| setAddsourcefile | back to summary |
|---|---|
| public void setAddsourcefile(boolean b) Set whether to send the source file name on the command line. Defaults to
| |
| setDest | back to summary |
|---|---|
| public void setDest(File destDir) Specify the directory where target files are to be placed.
| |
| setForce | back to summary |
|---|---|
| public void setForce(boolean b) Set whether to bypass timestamp comparisons for target files.
| |
| setForwardslash | back to summary |
|---|---|
| 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.
| |
| setIgnoremissing | back to summary |
|---|---|
| public void setIgnoremissing(boolean b) Set whether to ignore nonexistent files from filelists.
| |
| setMaxParallel | back to summary |
|---|---|
| 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.
| |
| setParallel | back to summary |
|---|---|
| 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.
| |
| setRelative | back to summary |
|---|---|
| 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.
| |
| setSkipEmptyFilesets | back to summary |
|---|---|
| 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.
| |
| setType | back to summary |
|---|---|
| public void setType(ExecuteOn. Set whether the command works only on files, directories or both.
| |
| setupRedirector | back to summary |
|---|---|
| protected void setupRedirector() Overrides org. Set up the I/O Redirector.
| |
| setVerbose | back to summary |
|---|---|
| public void setVerbose(boolean b) Set whether to operate in verbose mode. If true, a verbose summary will be printed after execution.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | DIR
Dir value |
| public static final String | FILE
File value |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String[] | getValues()
Implements abstract org. |
| DIR | back to summary |
|---|---|
| public static final String DIR Dir value | |
| FILE | back to summary |
|---|---|
| public static final String FILE File value | |
| FileDirBoth | back to summary |
|---|---|
| public FileDirBoth() | |
| getValues | back to summary |
|---|---|
| public String[] getValues() Implements abstract org. Doc from org. This is the only method a subclass needs to implement.
| |