org.apache.maven.plugin.war.util
public class ClassesPackager extends java.lang.Object
Constructor and Description |
---|
ClassesPackager()
Creates a new instance.
|
Modifier and Type | Method and 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.project.MavenProject project,
org.apache.maven.archiver.MavenArchiveConfiguration archiveConfiguration)
Package the classes
|
public void packageClasses(java.io.File classesDirectory, java.io.File targetFile, org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver, org.apache.maven.project.MavenProject project, org.apache.maven.archiver.MavenArchiveConfiguration archiveConfiguration) throws org.apache.maven.plugin.MojoExecutionException
classesDirectory
- the classes directorytargetFile
- the target filejarArchiver
- the jar archiver to useproject
- the related projectarchiveConfiguration
- the archive configuration to useorg.apache.maven.plugin.MojoExecutionException
- if an error occurred while creating the archivepublic java.io.File getClassesDirectory(java.io.File webappDirectory)
webappDirectory
- the webapp directoryCopyright © 2014. All Rights Reserved.