Fix issue when launching tests from the reactor in maven-plugins git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@280563 13f79535-47bb-0310-9956-ffa450edef68
50 lines
2.3 KiB
XML
50 lines
2.3 KiB
XML
<!--
|
|
/*
|
|
* 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 xmlns:util="jelly:util" xmlns:maven="jelly:maven" xmlns:j="jelly:core" xmlns:assert="assert" xmlns:ant="jelly:ant">
|
|
<goal name="testPlugin">
|
|
<attainGoal name="clean"/>
|
|
<!-- Multiproject : site -->
|
|
<j:set var="goal" value="clean,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>
|