Add plugin test project.
Checks if the generate-docs goal works only at this point. git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114020 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1
plugin/src/test/plugin-test/.cvsignore
Normal file
1
plugin/src/test/plugin-test/.cvsignore
Normal file
@@ -0,0 +1 @@
|
||||
*.log
|
||||
24
plugin/src/test/plugin-test/maven.xml
Normal file
24
plugin/src/test/plugin-test/maven.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<project xmlns:j="jelly:core" xmlns:u="jelly:util">
|
||||
<goal name="test" prereqs="test-generate-docs">
|
||||
<attainGoal name="clean"/>
|
||||
</goal>
|
||||
|
||||
<goal name="test-generate-docs">
|
||||
<attainGoal name="plugin:generate-docs"/>
|
||||
|
||||
<u:file var="docsSource" name="${maven.docs.src}"/>
|
||||
<j:if test="${!(docsSource.exists())}">
|
||||
<fail>no xdocs directory created</fail>
|
||||
</j:if>
|
||||
|
||||
<u:tokenize var="fileList" delim=",">navigation.xml,goals.xml</u:tokenize>
|
||||
|
||||
<j:forEach var="file" items="fileList">
|
||||
<u:file var="navXml" name="${maven.docs.src}/navigation.xml"/>
|
||||
<j:if test="${!(navXml.exists())}">
|
||||
<fail>no ${file} created</fail>
|
||||
</j:if>
|
||||
</j:forEach>
|
||||
<delete dir="${maven.docs.src}"/>
|
||||
</goal>
|
||||
</project>
|
||||
14
plugin/src/test/plugin-test/plugin.jelly
Normal file
14
plugin/src/test/plugin-test/plugin.jelly
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<project>
|
||||
|
||||
<goal name="goal1"
|
||||
description="Build a plugin jar and install to the maven.repo.local">
|
||||
|
||||
</goal>
|
||||
|
||||
<goal name="goal-2"
|
||||
description="Do it again">
|
||||
|
||||
</goal>
|
||||
</project>
|
||||
4
plugin/src/test/plugin-test/plugin.properties
Normal file
4
plugin/src/test/plugin-test/plugin.properties
Normal file
@@ -0,0 +1,4 @@
|
||||
# -------------------------------------------------------------------
|
||||
# P L U G I N P R O P E R T I E S
|
||||
# -------------------------------------------------------------------
|
||||
maven.dummy.var=abc
|
||||
87
plugin/src/test/plugin-test/project.xml
Normal file
87
plugin/src/test/plugin-test/project.xml
Normal file
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project>
|
||||
<pomVersion>3</pomVersion>
|
||||
<id>test-maven-plugin-plugin</id>
|
||||
<name>Test project for Maven Plugin Plugin</name>
|
||||
<groupId>maven</groupId>
|
||||
<currentVersion>1.0-SNAPSHOT</currentVersion>
|
||||
<organization>
|
||||
<name>Apache Software Foundation</name>
|
||||
<url>http://www.apache.org/</url>
|
||||
<logo>http://maven.apache.org/images/jakarta-logo-blue.gif</logo>
|
||||
</organization>
|
||||
<inceptionYear>2001</inceptionYear>
|
||||
<package>org.apache.maven</package>
|
||||
<logo>http://maven.apache.org/images/maven.jpg</logo>
|
||||
<description>Test for Maven Plugin plugin</description>
|
||||
<shortDescription>Test for Maven Plugin plugin</shortDescription>
|
||||
<url>http://maven.apache.org/reference/plugins/plugin/</url>
|
||||
<siteDirectory>/www/maven.apache.org/reference/plugins/plugin/</siteDirectory>
|
||||
<repository>
|
||||
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/plugin/</connection>
|
||||
<url>http://cvs.apache.org/viewcvs/maven/src/plugins-build/plugin/</url>
|
||||
</repository>
|
||||
<developers>
|
||||
<developer>
|
||||
<name>dIon Gillard</name>
|
||||
<id>dion</id>
|
||||
<email>dion@multitask.com.au</email>
|
||||
<organization>Multitask Consulting</organization>
|
||||
<roles>
|
||||
<role>Documentation</role>
|
||||
</roles>
|
||||
</developer>
|
||||
</developers>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>commons-jelly</groupId>
|
||||
<artifactId>commons-jelly-tags-xml</artifactId>
|
||||
<version>20030211.142705</version>
|
||||
<url>http://jakarta.apache.org/commons/jelly/libs/xml/</url>
|
||||
<properties>
|
||||
<classloader>root.maven</classloader>
|
||||
</properties>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-jelly</groupId>
|
||||
<artifactId>commons-jelly-tags-http</artifactId>
|
||||
<version>20030211.143043</version>
|
||||
<url>http://jakarta.apache.org/commons/jelly/libs/http/</url>
|
||||
<properties>
|
||||
<classloader>root.maven</classloader>
|
||||
</properties>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-httpclient</groupId>
|
||||
<artifactId>commons-httpclient</artifactId>
|
||||
<version>2.0-rc1</version>
|
||||
<url>http://jakarta.apache.org/commons/httpclient/</url>
|
||||
<properties>
|
||||
<classloader>root.maven</classloader>
|
||||
</properties>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<sourceDirectory>src/main</sourceDirectory>
|
||||
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/plugin-resources</directory>
|
||||
<targetPath>plugin-resources</targetPath>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>.</directory>
|
||||
<includes>
|
||||
<include>plugin.jelly</include>
|
||||
<include>plugin.properties</include>
|
||||
<include>project.properties</include>
|
||||
<include>project.xml</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
|
||||
</build>
|
||||
</project>
|
||||
Reference in New Issue
Block a user