public class ClassesPackager extends Object
Constructor and Description |
---|
ClassesPackager()
Creates a new instance.
|
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,
JarArchiver jarArchiver,
MavenSession session,
MavenProject project,
MavenArchiveConfiguration archiveConfiguration)
Package the classes
|
public void packageClasses(File classesDirectory, File targetFile, JarArchiver jarArchiver, MavenSession session, MavenProject project, MavenArchiveConfiguration archiveConfiguration) throws MojoExecutionException
classesDirectory
- the classes directorytargetFile
- the target filejarArchiver
- the jar archiver to usesession
- the current sessionproject
- the related projectarchiveConfiguration
- the archive configuration to useMojoExecutionException
- if an error occurred while creating the archiveCopyright © 2002–2019 The Apache Software Foundation. All rights reserved.