MPLUGIN-82: Fix test for javadoc tools

Submitted by: Benjamin Bentmann
Reviewed by: Vincent Siveton

o applied

git-svn-id: https://svn.apache.org/repos/asf/maven/plugin-tools/trunk@634974 13f79535-47bb-0310-9956-ffa450edef68
master
Vincent Siveton 2008-03-08 14:26:35 +00:00
parent 7f434f903b
commit 569b96374d
3 changed files with 30 additions and 3 deletions

View File

@ -102,6 +102,30 @@
<build> <build>
<plugins> <plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>it-test</id>
<phase>process-test-resources</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<copy todir="${project.build.testOutputDirectory}/unit" encoding="ISO-8859-1" overwrite="true">
<fileset dir="${basedir}/src/test/resources/unit" includes="**/*.xml"/>
<filterset>
<filter token="project.version" value="${project.version}"/>
</filterset>
</copy>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
@ -112,6 +136,9 @@
<goals> <goals>
<goal>jar</goal> <goal>jar</goal>
</goals> </goals>
<configuration>
<finalName>${project.build.finalName}-it</finalName>
</configuration>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
@ -127,7 +154,7 @@
<goal>install-file</goal> <goal>install-file</goal>
</goals> </goals>
<configuration> <configuration>
<file>${project.build.directory}/${project.build.finalName}.jar</file> <file>${project.build.directory}/${project.build.finalName}-it.jar</file>
<groupId>${project.groupId}</groupId> <groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId> <artifactId>${project.artifactId}</artifactId>
<version>${project.version}</version> <version>${project.version}</version>

View File

@ -105,7 +105,7 @@ public class JavadocReportTest
public void testMojoTaglets() public void testMojoTaglets()
throws Exception throws Exception
{ {
File testPom = new File( getBasedir(), "src/test/resources/unit/javadoc/javadoc-plugin-config.xml" ); File testPom = new File( getBasedir(), "target/test-classes/unit/javadoc/javadoc-plugin-config.xml" );
PlexusConfiguration pluginConfiguration = extractPluginConfiguration( "maven-javadoc-plugin", testPom ); PlexusConfiguration pluginConfiguration = extractPluginConfiguration( "maven-javadoc-plugin", testPom );
JavadocReport mojo = (JavadocReport) lookupMojo( "org.apache.maven.plugins", "maven-javadoc-plugin", "2.3", JavadocReport mojo = (JavadocReport) lookupMojo( "org.apache.maven.plugins", "maven-javadoc-plugin", "2.3",

View File

@ -114,7 +114,7 @@ under the License.
<tagletArtifact> <tagletArtifact>
<groupId>org.apache.maven</groupId> <groupId>org.apache.maven</groupId>
<artifactId>maven-plugin-tools-javadoc</artifactId> <artifactId>maven-plugin-tools-javadoc</artifactId>
<version>1.0-SNAPSHOT</version> <version>@project.version@</version>
</tagletArtifact> </tagletArtifact>
</configuration> </configuration>
</plugin> </plugin>