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 682908 2008-08-05 19:57:49Z hboutemy $
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, org.codehaus.plexus.archiver.jar.JarArchiver jarArchiver, org.apache.maven.project.MavenProject project, org.apache.maven.archiver.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,
                           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
Package the classes

Parameters:
classesDirectory - the classes directory
targetFile - the target file
jarArchiver - the jar archiver to use
project - the related project
archiveConfiguration - the archive configuration to use
Throws:
org.apache.maven.plugin.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-2010 The Apache Software Foundation. All Rights Reserved.