Class ImageCopier

java.lang.Object
org.forgerock.doc.maven.utils.ImageCopier

public final class ImageCopier extends Object
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 as epub or html
      baseName - Directory name to add, such as index. 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 as epub or html
      baseName - Directory name to add, such as index. Leave null or empty when not adding a directory name.
      documentSrcName - Top-level DocBook XML document source name, such as index.xml.
      sourceDirectory - Base directory for DocBook XML sources.
      outputDirectory - Base directory where the output is found.
      Throws:
      IOException - Something went wrong copying images.