Class ClassesPackager

java.lang.Object
org.apache.maven.plugins.war.util.ClassesPackager

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getClassesDirectory(File webappDirectory)
    Returns the classes directory from the specified webapp directory.
    void
    packageClasses(File classesDirectory, 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, String outputTimestamp)
    Package the classes

    Methods inherited from class java.lang.Object

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

    • ClassesPackager

      public ClassesPackager()
  • Method Details

    • packageClasses

      public void packageClasses(File classesDirectory, 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, 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 File getClassesDirectory(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