org.apache.maven.plugin.war.util
Class ClassesPackager

java.lang.Object
  extended by org.apache.maven.plugin.war.util.ClassesPackager

public class ClassesPackager
extends Object

Packages the content of the classes directory.

Version:
$Id: ClassesPackager.html 868453 2013-07-05 11:25:41Z olamy $
Author:
Stephane Nicoll

Constructor Summary
ClassesPackager()
          Creates a new instance.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassesPackager

public ClassesPackager()
Creates a new instance.

Method Detail

packageClasses

public void packageClasses(File classesDirectory,
                           File targetFile,
                           JarArchiver jarArchiver,
                           MavenSession session,
                           MavenProject project,
                           MavenArchiveConfiguration archiveConfiguration)
                    throws MojoExecutionException
Package the classes

Parameters:
classesDirectory - the classes directory
targetFile - the target file
jarArchiver - the jar archiver to use
session - the current session
project - the related project
archiveConfiguration - the archive configuration to use
Throws:
MojoExecutionException - if an error occurred while creating the archive

getClassesDirectory

public File getClassesDirectory(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


Copyright © 2002–2013 The Apache Software Foundation. All rights reserved.