Add test project

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114038 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion 2003-09-19 07:36:27 +00:00
parent 3e2d10d7f4
commit a08b981f83
5 changed files with 88 additions and 0 deletions

View File

@ -0,0 +1,2 @@
gump.xml
*.log

View File

@ -0,0 +1,24 @@
<project xmlns:util="jelly:util"
xmlns:j="jelly:core">
<goal name="testPlugin" prereqs="clean,test-html2xdoc,test-html2xdoc-site">
</goal>
<goal name="test-html2xdoc">
<attainGoal name="html2xdoc"/>
<j:set var="expectedFile" value="${maven.gen.docs}/h1h2.xml"/>
<util:file var="file" name="${expectedFile}" />
<j:if test="${!(file.exists())}">
<fail>${expectedFile} not generated</fail>
</j:if>
</goal>
<goal name="test-html2xdoc-site">
<attainGoal name="site"/>
<j:set var="expectedFile" value="${maven.docs.dest}/h1h2.html"/>
<util:file var="file" name="${expectedFile}" />
<j:if test="${!(file.exists())}">
<fail>${expectedFile} not generated</fail>
</j:if>
</goal>
</project>

View File

@ -0,0 +1,2 @@
# enable html transformation
maven.html2xdoc.enabled=true

View File

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
<pomVersion>3</pomVersion>
<id>test-maven-java-plugin</id>
<name>Test project for Maven Java 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 Java plugin</description>
<shortDescription>Test for Maven Java plugin</shortDescription>
<url>http://maven.apache.org/reference/plugins/java/</url>
<siteDirectory>/www/maven.apache.org/reference/plugins/java/</siteDirectory>
<repository>
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven/src/plugins-build/java/</connection>
<url>http://cvs.apache.org/viewcvs/maven/src/plugins-build/java/</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>
<build>
<sourceDirectory>src/main</sourceDirectory>
</build>
</project>

View File

@ -0,0 +1,20 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>A title</title>
</head>
<body>
<h1>A section title</h1>
Some text
<br/>
More text
<h2>a subsection</h2>
This is a subsection. It only has this.
</body>
</html>