dion 2003/03/17 04:40:13
Modified: src/plugins-build/repository plugin.jelly
Log:
Add a goal to generate all POMs
Revision Changes Path
1.15 +17 -0 jakarta-turbine-maven/src/plugins-build/repository/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/jakarta-turbine-maven/src/plugins-build/repository/plugin.jelly,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- plugin.jelly 17 Mar 2003 06:48:42 -0000 1.14
+++ plugin.jelly 17 Mar 2003 12:40:12 -0000 1.15
@@ -260,6 +260,23 @@
</x:forEach>
</goal>
+ <goal name="repository:audit-generate-poms"
+ description="generate a pom for all the groupId's in the audit file">
+
+ <repository:parseAudit var="audit"/>
+ <x:forEach var="project" select="$audit/licenses/project">
+ <j:set var="group"><x:expr select="$project/groupId"/></j:set>
+ <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 & 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>
+ </x:forEach>
+ </goal>
+
<!-- expects groupId to be set -->
<goal name="repository:create-project"
description="create a project, specified by groupId, in the repository">
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]