public class ClassesPackager extends Object
Constructor and Description |
---|
ClassesPackager() |
Modifier and Type | Method and Description |
---|---|
File |
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
|
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
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 reproducibilityorg.apache.maven.plugin.MojoExecutionException
- if an error occurred while creating the archiveCopyright © 2002–2023 The Apache Software Foundation. All rights reserved.