Modified default value of <code>maven.cruisecontrol.logs.mergedirectory</code> so that CC can aggregate JUnit test reports both for single project and multiproject setups.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@154403 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
vmassol 2005-02-19 11:04:13 +00:00
parent 2685a5b196
commit a45927c4fe
3 changed files with 9 additions and 15 deletions

View File

@ -37,13 +37,13 @@ maven.cruisecontrol.schedule.type=interval
maven.cruisecontrol.schedule.interval=300
maven.cruisecontrol.schedule.time=1900
# If left undefined this property is computed automatically by the plugin
# from the ${maven.build.dir} property.
#maven.cruisecontrol.logs.mergedirectory=${maven.cruisecontrol.checkout.dir}/${module}/target/test-reports
# We use the root directory to search for JUnit report files so that it works
# both in single and multiproject setups.
maven.cruisecontrol.logs.mergedirectory=${maven.cruisecontrol.checkout.dir}/${module}
maven.cruisecontrol.logs.pattern=TEST-*.xml
maven.cruisecontrol.logs.merge=true
maven.cruisecontrol.logs.encodingtype=ISO-8859-1
maven.cruisecontrol.logs.pattern=*.xml
maven.cruisecontrol.currentbuildstatus.filename=status.txt

View File

@ -26,6 +26,11 @@
</properties>
<body>
<release version="1.7" date="in SVN">
<action dev="vmassol" type="update">
Modified default value of <code>maven.cruisecontrol.logs.mergedirectory</code>
so that CC can aggregate JUnit test reports both for single project and
multiproject setups.
</action>
<action dev="vmassol" type="update">
Compute automatically the merge directory automatically (the
value of <code>maven.cruisecontrol.logs.mergedirectory</code>

View File

@ -139,17 +139,6 @@ maven.cruisecontrol.template=${plugin.resources}/my-cc-template.jsl]]></source>
project for your multiproject (i.e. viewing the multiproject project as one project only).
</answer>
</faq>
<faq id="merging-logs">
<question>How can I tell CC to correctly merge JUnit logs for a multiproject setup?</question>
<answer>
Define the following 2 properties in the project.properties file of your master project:
<source><![CDATA[
maven.cruisecontrol.logs.mergedirectory=${maven.cruisecontrol.checkout.dir}/${module}
maven.cruisecontrol.logs.pattern=TEST-*.xml
]]></source>
</answer>
</faq>
</part>