org.apache.maven.plugin.jar
Class TestJarMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.jar.AbstractJarMojo
          extended by org.apache.maven.plugin.jar.TestJarMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class TestJarMojo
extends AbstractJarMojo

Build a JAR of the test classes for the current project.

Version:
$Id: TestJarMojo.java 417791 2006-06-28 15:29:04Z brett $
Author:
Emmanuel Venisse

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
TestJarMojo()
           
 
Method Summary
protected  java.io.File getClassesDirectory()
          Return the test-classes directory, to serve as the root of the tests jar.
protected  java.lang.String getClassifier()
          Overload this to produce a test-jar, for example.
 
Methods inherited from class org.apache.maven.plugin.jar.AbstractJarMojo
createArchive, execute, getJarFile, getProject
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestJarMojo

public TestJarMojo()
Method Detail

getClassifier

protected java.lang.String getClassifier()
Description copied from class: AbstractJarMojo
Overload this to produce a test-jar, for example.

Specified by:
getClassifier in class AbstractJarMojo

getClassesDirectory

protected java.io.File getClassesDirectory()
Return the test-classes directory, to serve as the root of the tests jar.

Specified by:
getClassesDirectory in class AbstractJarMojo


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.