Package org.forgerock.doc.maven.utils
Class ImageCopier
java.lang.Object
org.forgerock.doc.maven.utils.ImageCopier
Copy images from source to destination.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
copyImages
(String docType, String baseName, String documentSrcName, File sourceDirectory, File outputDirectory) Copy images from source to destination.static void
copyImages
(String docType, String baseName, AbstractDocbkxMojo mojo) Copy images from source to destination.
-
Method Details
-
copyImages
public static void copyImages(String docType, String baseName, AbstractDocbkxMojo mojo) throws IOException Copy images from source to destination.- Parameters:
docType
- Type of output document, such asepub
orhtml
baseName
- Directory name to add, such asindex
. Leave null or empty when not adding a directory name.mojo
- Mojo holding configuration information.- Throws:
IOException
- Something went wrong copying images.
-
copyImages
public static void copyImages(String docType, String baseName, String documentSrcName, File sourceDirectory, File outputDirectory) throws IOException Copy images from source to destination.DocBook XSL does not copy the images, because XSL does not have a facility for copying files. Unfortunately, neither does docbkx-tools.
- Parameters:
docType
- Type of output document, such asepub
orhtml
baseName
- Directory name to add, such asindex
. Leave null or empty when not adding a directory name.documentSrcName
- Top-level DocBook XML document source name, such asindex.xml
.sourceDirectory
- Base directory for DocBook XML sources.outputDirectory
- Base directory where the output is found.- Throws:
IOException
- Something went wrong copying images.
-