Author: brett
Date: Mon May 2 00:21:49 2005
New Revision: 165595
URL: http://svn.apache.org/viewcvs?rev=165595&view=rev
Log:
update tests to match new mojo API
Modified:
maven/components/trunk/maven-plugin-tools/maven-plugin-tools-java/src/test/resources/source/JavaExtractorTestOne.java
maven/components/trunk/maven-plugin-tools/maven-plugin-tools-java/src/test/resources/source/JavaExtractorTestTwo.java
Modified:
maven/components/trunk/maven-plugin-tools/maven-plugin-tools-java/src/test/resources/source/JavaExtractorTestOne.java
URL:
http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugin-tools/maven-plugin-tools-java/src/test/resources/source/JavaExtractorTestOne.java?rev=165595&r1=165594&r2=165595&view=diff
==============================================================================
---
maven/components/trunk/maven-plugin-tools/maven-plugin-tools-java/src/test/resources/source/JavaExtractorTestOne.java
(original)
+++
maven/components/trunk/maven-plugin-tools/maven-plugin-tools-java/src/test/resources/source/JavaExtractorTestOne.java
Mon May 2 00:21:49 2005
@@ -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()
{
}
}
Modified:
maven/components/trunk/maven-plugin-tools/maven-plugin-tools-java/src/test/resources/source/JavaExtractorTestTwo.java
URL:
http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugin-tools/maven-plugin-tools-java/src/test/resources/source/JavaExtractorTestTwo.java?rev=165595&r1=165594&r2=165595&view=diff
==============================================================================
---
maven/components/trunk/maven-plugin-tools/maven-plugin-tools-java/src/test/resources/source/JavaExtractorTestTwo.java
(original)
+++
maven/components/trunk/maven-plugin-tools/maven-plugin-tools-java/src/test/resources/source/JavaExtractorTestTwo.java
Mon May 2 00:21:49 2005
@@ -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()
{
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]