Class ClassesPackager
- java.lang.Object
-
- org.apache.maven.plugins.war.util.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
-
-
-
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 directorytargetFile
- the target filejarArchiver
- the jar archiver to usesession
- the current sessionproject
- the related projectarchiveConfiguration
- the archive configuration to useoutputTimestamp
- 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
-
-