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:
parent
3e2d10d7f4
commit
a08b981f83
2
html2xdoc/src/test/plugin-test/.cvsignore
Normal file
2
html2xdoc/src/test/plugin-test/.cvsignore
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
gump.xml
|
||||||
|
*.log
|
||||||
24
html2xdoc/src/test/plugin-test/maven.xml
Normal file
24
html2xdoc/src/test/plugin-test/maven.xml
Normal 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>
|
||||||
2
html2xdoc/src/test/plugin-test/project.properties
Normal file
2
html2xdoc/src/test/plugin-test/project.properties
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# enable html transformation
|
||||||
|
maven.html2xdoc.enabled=true
|
||||||
40
html2xdoc/src/test/plugin-test/project.xml
Normal file
40
html2xdoc/src/test/plugin-test/project.xml
Normal 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>
|
||||||
20
html2xdoc/src/test/plugin-test/xdocs/h1h2.html
Normal file
20
html2xdoc/src/test/plugin-test/xdocs/h1h2.html
Normal 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>
|
||||||
Loading…
x
Reference in New Issue
Block a user