update tests to match new mojo API

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@165595 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-05-02 07:21:49 +00:00
parent df678d2a88
commit e7b911416f
2 changed files with 23 additions and 35 deletions

View File

@ -1,36 +1,29 @@
import org.apache.maven.plugin.AbstractPlugin;
import org.apache.maven.plugin.PluginExecutionRequest;
import org.apache.maven.plugin.PluginExecutionResponse;
import org.apache.maven.plugin.AbstractMojo;
/**
* @goal ideaOne
* Create an IDEA project file from a Maven project.
*
* @description Create an IDEA project file from a Maven project.
* @goal ideaOne
*
* @requiresDependencyResolution
*
* @prereq foo
* @prereq bar
*
* @parameter
* name="project"
* type="String[]"
* required="true"
* validator="org.foo.validator"
* expression="#project"
* description="Maven project used to generate IDEA project files."
*/
public class JavaExtractorTestOne
extends AbstractPlugin
extends AbstractMojo
{
protected String var;
/**
* Maven project used to generate IDEA project files.
* @parameter expression="#project"
* @required
*/
protected String[] project;
public JavaExtractorTestOne()
{
}
public void execute( PluginExecutionRequest request, PluginExecutionResponse response )
throws Exception
public void execute()
{
}
}

View File

@ -1,32 +1,27 @@
import org.apache.maven.plugin.AbstractPlugin;
import org.apache.maven.plugin.PluginExecutionRequest;
import org.apache.maven.plugin.PluginExecutionResponse;
import org.apache.maven.plugin.AbstractMojo;
/**
* Create an IDEA project file from a Maven project.
* @goal ideaTwo
* @description Create an IDEA project file from a Maven project.
* @requiresDependencyResolution compile
* @prereq foo
* @prereq bar
* @parameter name="project"
* type="String[]"
* required="true"
* validator="org.foo.validator"
* expression="#project"
* description="Maven project used to generate IDEA project files."
*/
public class JavaExtractorTestTwo
extends AbstractPlugin
extends AbstractMojo
{
protected String var;
/**
* Maven project used to generate IDEA project files.
* @parameter expression="#project"
* @required
*/
private String[] project;
public JavaExtractorTestTwo()
{
}
public void execute( PluginExecutionRequest request, PluginExecutionResponse response )
throws Exception
public void execute()
{
}
}