git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@521198 13f79535-47bb-0310-9956-ffa450edef68
50 lines
2.4 KiB
XML
50 lines
2.4 KiB
XML
<!--
|
|
/*
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
* this work for additional information regarding copyright ownership.
|
|
* The ASF licenses this file to You 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 xmlns:util="jelly:util" xmlns:maven="jelly:maven" xmlns:j="jelly:core" xmlns:assert="assert" xmlns:ant="jelly:ant">
|
|
<goal name="testPlugin" prereqs="clean">
|
|
<!-- Multiproject : site -->
|
|
<j:set var="goal" value="testPlugin"/>
|
|
<j:set var="maven.multiproject.includes" value="test*/project.xml"/>
|
|
<attainGoal name="multiproject:site"/>
|
|
<attainGoal name="pdf"/>
|
|
<assert:assertFileExists file="${maven.docs.dest}/${pom.artifactId}.pdf"/>
|
|
</goal>
|
|
<preGoal name="pdf:init">
|
|
<maven:reactor basedir="${basedir}" postProcessing="true" includes="test*/project.xml" collectOnly="true" ignoreFailures="false" collectionVar="multiprojects"/>
|
|
<!-- We copy the generated files to use them in the pdf -->
|
|
<j:forEach var="reactorProject" items="${multiprojects}">
|
|
<j:set var="fromDir" value="${reactorProject.context.getVariable('maven.gen.docs')}"/>
|
|
<ant:copy todir="${maven.build.dir}/pdf/${maven.multiproject.aggregateDir}${reactorProject.artifactId}">
|
|
<ant:fileset dir="${fromDir}" force="true">
|
|
<ant:include name="**/*.*"/>
|
|
</ant:fileset>
|
|
</ant:copy>
|
|
</j:forEach>
|
|
<!-- We copy the generated files to use them in the pdf -->
|
|
<j:forEach var="reactorProject" items="${multiprojects}">
|
|
<j:set var="fromDir" value="${reactorProject.context.getVariable('maven.docs.src')}"/>
|
|
<ant:copy todir="${maven.build.dir}/pdf/${maven.multiproject.aggregateDir}${reactorProject.artifactId}">
|
|
<ant:fileset dir="${fromDir}" force="true">
|
|
<ant:include name="**/*.*"/>
|
|
</ant:fileset>
|
|
</ant:copy>
|
|
</j:forEach>
|
|
</preGoal>
|
|
</project>
|