Class ClassesPackager


  • public class ClassesPackager
    extends java.lang.Object
    Packages the content of the classes directory.
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassesPackager()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.File getClassesDirectory​(java.io.File webappDirectory)
      Returns the classes directory from the specified webapp directory.
      void packageClasses​(java.io.File classesDirectory, java.io.File targetFile, org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver, org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, org.apache.maven.archiver.MavenArchiveConfiguration archiveConfiguration, java.lang.String outputTimestamp)
      Package the classes
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClassesPackager

        public ClassesPackager()
    • Method Detail

      • packageClasses

        public void packageClasses​(java.io.File classesDirectory,
                                   java.io.File targetFile,
                                   org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver,
                                   org.apache.maven.execution.MavenSession session,
                                   org.apache.maven.project.MavenProject project,
                                   org.apache.maven.archiver.MavenArchiveConfiguration archiveConfiguration,
                                   java.lang.String outputTimestamp)
                            throws org.apache.maven.plugin.MojoExecutionException
        Package the classes
        Parameters:
        classesDirectory - the classes directory
        targetFile - the target file
        jarArchiver - the jar archiver to use
        session - the current session
        project - the related project
        archiveConfiguration - the archive configuration to use
        outputTimestamp - the output timestamp for reproducibility
        Throws:
        org.apache.maven.plugin.MojoExecutionException - if an error occurred while creating the archive
      • getClassesDirectory

        public java.io.File getClassesDirectory​(java.io.File webappDirectory)
        Returns the classes directory from the specified webapp directory.
        Parameters:
        webappDirectory - the webapp directory
        Returns:
        the classes directory of the specified webapp directory