public class IterativeTaskFileMap extends Object implements Iterable<IterativeTaskFile>
| Constructor and Description |
|---|
IterativeTaskFileMap()
A collection for all source files, that shall be processed by the current webPDF task.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.apache.tools.ant.types.ResourceCollection resourceCollection)
Will add each resource defined in the given collection.
|
File |
getTargetDirectory()
Shall return the directory the final result shall be placed in.
|
File |
getTargetFile()
Returns the file the final result shall be copied to.
|
TempDir |
getTempDir() |
Iterator<IterativeTaskFile> |
iterator()
An iterator over all source/name mappings of this collection.
|
void |
replaceWithInputVar(Variable input)
Overrides the currently set resources with a manually set input variable.
|
void |
setMapper(org.apache.tools.ant.util.FileNameMapper fileNameMapper)
Initializes the mapper, that will be used to deduce target file names for source files.
|
void |
setTargetDirectory(File targetDirectory)
Sets the directory the final result shall be placed in.
|
void |
setTargetFile(File targetFile)
Sets the explicit file the final result shall be copied to.
|
void |
setTempDir(File tempDir)
Sets the directory temporary files shall be created in.
|
public IterativeTaskFileMap()
public void setTempDir(File tempDir) throws org.apache.tools.ant.BuildException
tempDir - The directory temporary files shall be created in.org.apache.tools.ant.BuildException - Shall be thrown if the given directory is invalid or inaccessible.public TempDir getTempDir()
public void setTargetDirectory(File targetDirectory) throws org.apache.tools.ant.BuildException
targetDirectory - The directory the final result shall be placed in.org.apache.tools.ant.BuildException - Shall be thrown if the given directory is invalid or inaccessible.public File getTargetDirectory()
public void setTargetFile(File targetFile)
targetFile - The file the final result shall be copied to.public File getTargetFile()
public void add(org.apache.tools.ant.types.ResourceCollection resourceCollection)
resourceCollection - The collection, that shall be appended to this task file collection.public void setMapper(org.apache.tools.ant.util.FileNameMapper fileNameMapper)
throws org.apache.tools.ant.BuildException
fileNameMapper - The mapper, that will be used to deduce target file names for source files.org.apache.tools.ant.BuildException - Shall be thrown if the mapper is not valid, or if a valid mapper has already been set.public void replaceWithInputVar(Variable input) throws IOException
input - The input variable, that shall replace the currently set resources.IOException - Shall be thrown, if the given file can not be accessed.public Iterator<IterativeTaskFile> iterator()
iterator in interface Iterable<IterativeTaskFile>Copyright © 2017–2019 SoftVision Development GmbH, Fulda, Germany. All rights reserved.