Skip to content

Commit a11b921

Browse files
committed
[MJAVADOC-809] Align Mojo class names
This closes #312
1 parent 7c4b467 commit a11b921

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

src/main/java/org/apache/maven/plugins/javadoc/AggregatorJavadocJar.java renamed to src/main/java/org/apache/maven/plugins/javadoc/AggregatorJavadocJarMojo.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
aggregator = true,
3939
requiresDependencyResolution = ResolutionScope.COMPILE)
4040
@Execute(phase = LifecyclePhase.COMPILE)
41-
public class AggregatorJavadocJar extends JavadocJar {
41+
public class AggregatorJavadocJarMojo extends JavadocJarMojo {
4242
@Override
4343
protected boolean isAggregator() {
4444
return true;

src/main/java/org/apache/maven/plugins/javadoc/AggregatorTestJavadocJar.java renamed to src/main/java/org/apache/maven/plugins/javadoc/AggregatorTestJavadocJarMojo.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
aggregator = true,
3939
requiresDependencyResolution = ResolutionScope.TEST)
4040
@Execute(phase = LifecyclePhase.TEST_COMPILE)
41-
public class AggregatorTestJavadocJar extends TestJavadocJar {
41+
public class AggregatorTestJavadocJarMojo extends TestJavadocJarMojo {
4242
@Override
4343
protected boolean isAggregator() {
4444
return true;

src/main/java/org/apache/maven/plugins/javadoc/JavadocJar.java renamed to src/main/java/org/apache/maven/plugins/javadoc/JavadocJarMojo.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
defaultPhase = LifecyclePhase.PACKAGE,
5454
requiresDependencyResolution = ResolutionScope.COMPILE,
5555
threadSafe = true)
56-
public class JavadocJar extends AbstractJavadocMojo {
56+
public class JavadocJarMojo extends AbstractJavadocMojo {
5757
/**
5858
* Includes all generated Javadoc files
5959
*/

src/main/java/org/apache/maven/plugins/javadoc/TestJavadocJar.java renamed to src/main/java/org/apache/maven/plugins/javadoc/TestJavadocJarMojo.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
defaultPhase = LifecyclePhase.PACKAGE,
4848
requiresDependencyResolution = ResolutionScope.TEST,
4949
threadSafe = true)
50-
public class TestJavadocJar extends JavadocJar {
50+
public class TestJavadocJarMojo extends JavadocJarMojo {
5151
// ----------------------------------------------------------------------
5252
// Javadoc Options (should be inline with Javadoc options defined in TestJavadocReport)
5353
// ----------------------------------------------------------------------

src/main/java/org/apache/maven/plugins/javadoc/TestResourcesBundleMojo.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import org.apache.maven.plugins.annotations.ResolutionScope;
2727

2828
/**
29-
* Bundle {@link TestJavadocJar#testJavadocDirectory}, along with javadoc configuration options from
29+
* Bundle {@link TestJavadocJarMojo#testJavadocDirectory}, along with javadoc configuration options from
3030
* {@link AbstractJavadocMojo} such as taglet, doclet, and link information into a deployable
3131
* artifact. This artifact can then be consumed by the javadoc plugin mojos when used by the
3232
* <code>includeDependencySources</code> option, to generate javadocs that are somewhat consistent

src/test/java/org/apache/maven/plugins/javadoc/JavadocJarTest.java renamed to src/test/java/org/apache/maven/plugins/javadoc/JavadocJarMojoTest.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444
/**
4545
* @author <a href="mailto:[email protected]">Maria Odea Ching</a>
4646
*/
47-
public class JavadocJarTest extends AbstractMojoTestCase {
47+
public class JavadocJarMojoTest extends AbstractMojoTestCase {
4848

49-
private JavadocJar lookupMojo(File testPom) throws Exception {
50-
JavadocJar mojo = (JavadocJar) lookupMojo("jar", testPom);
49+
private JavadocJarMojo lookupMojo(File testPom) throws Exception {
50+
JavadocJarMojo mojo = (JavadocJarMojo) lookupMojo("jar", testPom);
5151

5252
Plugin p = new Plugin();
5353
p.setGroupId("org.apache.maven.plugins");
@@ -78,7 +78,7 @@ private JavadocJar lookupMojo(File testPom) throws Exception {
7878
public void testDefaultConfig() throws Exception {
7979
File testPom = new File(
8080
getBasedir(), "src/test/resources/unit/javadocjar-default/javadocjar-default-plugin-config.xml");
81-
JavadocJar mojo = lookupMojo(testPom);
81+
JavadocJarMojo mojo = lookupMojo(testPom);
8282
mojo.execute();
8383

8484
// check if the javadoc jar file was generated
@@ -144,7 +144,7 @@ public void testInvalidDestdir() throws Exception {
144144
File testPom = new File(
145145
getBasedir(),
146146
"src/test/resources/unit/javadocjar-invalid-destdir/javadocjar-invalid-destdir-plugin-config.xml");
147-
JavadocJar mojo = lookupMojo(testPom);
147+
JavadocJarMojo mojo = lookupMojo(testPom);
148148
mojo.execute();
149149

150150
// check if the javadoc jar file was generated
@@ -158,7 +158,7 @@ public void testContinueIfFailOnErrorIsFalse() throws Exception {
158158
File testPom = new File(
159159
getBasedir(),
160160
"src/test/resources/unit/javadocjar-failonerror/javadocjar-failonerror-plugin-config.xml");
161-
JavadocJar mojo = lookupMojo(testPom);
161+
JavadocJarMojo mojo = lookupMojo(testPom);
162162
mojo.execute();
163163

164164
// check if the javadoc jar file was generated
@@ -170,7 +170,7 @@ public void testContinueIfFailOnErrorIsFalse() throws Exception {
170170
public void testIncludeMavenDescriptorWhenExplicitlyConfigured() throws Exception {
171171
File testPom = new File(
172172
getBasedir(), "src/test/resources/unit/javadocjar-archive-config/javadocjar-archive-config.xml");
173-
JavadocJar mojo = lookupMojo(testPom);
173+
JavadocJarMojo mojo = lookupMojo(testPom);
174174
mojo.execute();
175175

176176
// check if the javadoc jar file was generated
@@ -200,7 +200,7 @@ public void testIncludeMavenDescriptorWhenExplicitlyConfigured() throws Exceptio
200200

201201
public void testStale() throws Exception {
202202
File testPom = new File(getBasedir(), "src/test/resources/unit/stale-test/stale-test-plugin-config.xml");
203-
JavadocJar mojo = lookupMojo(testPom);
203+
JavadocJarMojo mojo = lookupMojo(testPom);
204204
BufferingLog log = new BufferingLog();
205205
mojo.setLog(log);
206206

0 commit comments

Comments
 (0)