Added repository:audit-generate-pom for generating a pom from a groupId as found

in the audit file


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113129 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion 2003-03-17 06:48:42 +00:00
parent 80d13001df
commit b9ebac3670

View File

@ -1,7 +1,9 @@
<?xml version="1.0"?>
<project
xmlns:ant="jelly:ant"
xmlns:define="jelly:define"
xmlns:dummy="dummy"
xmlns:j="jelly:core"
xmlns:repository="repository"
xmlns:u="jelly:util"
@ -237,6 +239,27 @@
</x:forEach>
</goal>
<goal name="repository:audit-generate-pom"
description="generate a pom for the groupId provided, based on the audit file">
<repository:required name="groupId" value="${groupId}" />
<repository:parseAudit var="audit"/>
<x:forEach var="project" select="$audit/licenses/project">
<j:set var="group"><x:expr select="$project/groupId"/></j:set>
<j:if test="${group.equals(groupId)}">
<ant:echo>Creating pom for ${group}</ant:echo>
<x:set var="url" select="string($project/url)"/>
<x:set var="comments" select="string($project/comments)"/>
<!-- get file and don't let the &amp; get reescaped -->
<x:set var="xfile" select="string($project/file)" />
<j:file name="${maven.build.dir}/${group}.pom" prettyPrint="yes">
<j:import file="${plugin.resources}/pom-template.jelly" inherit="true"/>
</j:file>
</j:if>
</x:forEach>
</goal>
<!-- expects groupId to be set -->
<goal name="repository:create-project"
description="create a project, specified by groupId, in the repository">