git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@156960 13f79535-47bb-0310-9956-ffa450edef68
52 lines
1.7 KiB
XML
52 lines
1.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
/*
|
|
* Copyright 2001-2004 The Apache Software Foundation.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
-->
|
|
<project default="testPlugin"
|
|
xmlns:assert="assert"
|
|
xmlns:j="jelly:core"
|
|
xmlns:u="jelly:util"
|
|
xmlns:ant="jelly:ant">
|
|
|
|
<goal name="testPlugin" prereqs="clean">
|
|
<attainGoal name="test-assertFileContains"/>
|
|
<attainGoal name="test-generate-docs"/>
|
|
</goal>
|
|
|
|
<goal name="test-generate-docs">
|
|
<attainGoal name="plugin:generate-docs"/>
|
|
|
|
<assert:assertFileExists file="${maven.docs.src}"/>
|
|
|
|
<u:tokenize var="fileList" delim=",">navigation.xml,goals.xml,properties.xml,tags.xml</u:tokenize>
|
|
|
|
<j:forEach var="file" items="${fileList}">
|
|
<assert:assertFileExists file="${maven.docs.src}/${file}"/>
|
|
</j:forEach>
|
|
<delete dir="${maven.docs.src}"/>
|
|
|
|
</goal>
|
|
|
|
<goal name="test-assertFileContains">
|
|
<ant:mkdir dir="${maven.build.dir}"/>
|
|
<j:file name="${maven.build.dir}/testAssertFileContains.txt">This is a test blah blah...</j:file>
|
|
<assert:assertFileContains file="${maven.build.dir}/testAssertFileContains.txt"
|
|
match="a test"/>
|
|
</goal>
|
|
|
|
</project> |