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.java 1235053 2012-01-23 23:03:53Z dennisl $
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-2012 The Apache Software Foundation. All Rights Reserved.