Initial revision
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112724 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
66e44f2734
commit
530c640d4f
821 files changed
+55754
No files matched your search
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<project
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:util="jelly:util"
|
||||
xmlns:changelog="changelog"
|
||||
xmlns:doc="doc">
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- D E V E L O P E R A C T I V I T Y R E P O R T -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<goal name="maven-developer-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:choose>
|
||||
<j:when test="${maven.mode.online}">
|
||||
<j:set var="_connection">${pom.repository.connection}</j:set>
|
||||
<j:if test="${!empty(_connection)}">
|
||||
<echo>Generating the developer activity report</echo>
|
||||
<mkdir dir="${maven.gen.docs}"/>
|
||||
|
||||
<!--
|
||||
|
|
||||
| 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="${changlogPresent != 'true'}">
|
||||
<changelog:changelog
|
||||
basedir="${basedir}"
|
||||
developers="${pom.developers}"
|
||||
factory="${maven.changelog.factory}"
|
||||
output="${maven.build.dir}/changelog.xml"
|
||||
outputEncoding="${maven.docs.outputencoding}"
|
||||
range="${maven.activitylog.range}"
|
||||
repositoryConnection="${pom.repository.connection}"
|
||||
/>
|
||||
</j:if>
|
||||
|
||||
<doc:jsl
|
||||
input="${maven.build.dir}/changelog.xml"
|
||||
output="developer-activity-report.xml"
|
||||
stylesheet="${plugin.resources}/developer-activity.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>
|
||||
Reference in new issue
Block a user