evenisse 95ebcf3852 Apply patch from Jim Crossley. Thanks.
o patch for support whitespace in starteam connection string
o patch for support specific locale with Starteam


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113004 13f79535-47bb-0310-9956-ffa450edef68
2003-02-27 10:30:33 +00:00

95 lines
3.0 KiB
XML

<?xml version="1.0"?>
<project
xmlns:j="jelly:core"
xmlns:util="jelly:util"
xmlns:changelog="changelog"
xmlns:doc="doc">
<goal name="maven-file-activity-plugin:register">
<doc:registerReport
name="File Activity"
pluginName="maven-file-activity-plugin"
link="file-activity-report"
description="Report on file activity."/>
</goal>
<goal name="maven-file-activity-plugin:deregister">
<doc:deregisterReport name="File Activity"/>
</goal>
<!-- ================================================================== -->
<!-- F I L E A C T I V I T Y R E P O R T -->
<!-- ================================================================== -->
<!--
I want to be able to do <goal name="${plugin.artifactId}:report"/> so I have
to teach werkz to look in the context for the name attribute as well.
This will simplify things and make them consistent as we can easily
generate the skeleton for a report plugin.
-->
<goal name="maven-file-activity-plugin:report"
description="Generate developer and file activity reports">
<j:if test="${context.getVariable('maven.mode.online') == null}">
<j:set var="maven.mode.online" value="true" />
</j:if>
<j:set var="factory"
value="${pom.getPluginContext('maven-changelog-plugin').getVariable('maven.changelog.factory')}"/>
<j:choose>
<j:when test="${maven.mode.online}">
<j:set var="_connection">${pom.repository.connection}</j:set>
<j:if test="${!empty(_connection)}">
<echo>Generating the file activity report</echo>
<!--
|
| Now we only want to generate the change log if it hasn't
| already been generated.
|
-->
<util:available file="${maven.build.dir}/changelog.xml">
<j:set var="changelogPresent" value="true"/>
</util:available>
<j:if test="${changelogPresent != 'true'}">
<changelog:changelog
basedir="${basedir}"
developers="${pom.developers}"
factory="${factory}"
output="${maven.build.dir}/changelog.xml"
outputEncoding="${maven.docs.outputencoding}"
range="${maven.activitylog.range}"
repositoryConnection="${pom.repository.connection}"
dateFormat="${maven.changelog.dateformat}"
/>
</j:if>
<doc:jsl
input="${maven.build.dir}/changelog.xml"
output="file-activity-report.xml"
stylesheet="${plugin.resources}/${plugin.artifactId}.jsl"
encoding="${maven.docs.outputencoding}"
omitXmlDeclaration="false"
outputMode="xml"
prettyPrint="true"
/>
</j:if>
</j:when>
<j:otherwise>
<echo>The Activity report is only available in online mode.</echo>
</j:otherwise>
</j:choose>
</goal>
</project>