Interface ConfigStepIndex
- All Superinterfaces:
ConfigStep
Creates an XML file containing an index of all files in a directory.
The paths will be relative to the location of the target XML file
if possible, otherwise absolute paths will be stored.
type: post-step
Example XML:
<index>
<source-dir>copied-documents</source-dir>
<target-file>pdf-documents.xml</target-file>
<file-ending>pdf</file-ending>
</index>
-
Method Summary
Modifier and TypeMethodDescriptionThe file ending of the files from the source directory to add to the index.The source directory to scan for files.The target file to store the index in.void
setFileEnding
(String fileEnding) void
setSourceDir
(String dir) void
setTargetFile
(String file)
-
Method Details
-
getSourceDir
String getSourceDir()The source directory to scan for files. Can be absolute or relative to the output directory. XML tag: "source-dir"- Returns:
- The source directory to scan for files.
-
setSourceDir
-
getTargetFile
String getTargetFile()The target file to store the index in. Can be absolute or relative to the output directory. XML tag: "target-file"- Returns:
- The target file to store the index in.
-
setTargetFile
-
getFileEnding
String getFileEnding()The file ending of the files from the source directory to add to the index. Defaults to ".xml" if no value is provided. XML tag: "file-ending"- Returns:
- The file ending of the files from the source directory to add to the index.
-
setFileEnding
-