Class ClassesPackager
java.lang.Object
org.apache.maven.plugins.war.util.ClassesPackager
Packages the content of the classes directory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClassesDirectory
(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
-
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 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
Returns the classes directory from the specified webapp directory.- Parameters:
webappDirectory
- the webapp directory- Returns:
- the classes directory of the specified webapp directory
-