Class WarArchiveMerger

    • Constructor Detail

      • WarArchiveMerger

        public WarArchiveMerger()
        Constructor Class for merging War archives together.
    • Method Detail

      • addMergeProcessor

        public void addMergeProcessor​(String path,
                                      MergeProcessor merger)
        Add a merging processor that merges specified items witin the war files.
        Parameters:
        path - in the path to merge to
        merger - in the merger
      • performMerge

        public void performMerge​(File targetFile)
                          throws IOException,
                                 org.jdom2.JDOMException
        Perform the archive merge, using the specified file as the output destination.
        Parameters:
        targetFile - The target file to output to.
        Throws:
        org.jdom2.JDOMException - If a JDOM exception occurs
        IOException - If an IO exception occurs
      • setMergeJarFiles

        public void setMergeJarFiles​(boolean doMergeJarFiles)
        Control whether the merge should include JAR files.
        Parameters:
        doMergeJarFiles - true if we do (default)
      • getWebXmlMerger

        public WebXmlMerger getWebXmlMerger()
        Get the class used for web xml merging.
        Returns:
        the Web XML Merger