mcconnell 2003/11/24 07:14:18
Modified: kernel/impl .cvsignore
Added: kernel/impl maven.xml
Log:
Add metadata generation for target descriptor.
Revision Changes Path
1.3 +1 -2 avalon-sandbox/kernel/impl/.cvsignore
Index: .cvsignore
===================================================================
RCS file: /home/cvs/avalon-sandbox/kernel/impl/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- .cvsignore 24 Nov 2003 08:15:21 -0000 1.2
+++ .cvsignore 24 Nov 2003 15:14:18 -0000 1.3
@@ -1,5 +1,4 @@
-maven.log
-velocity.log
+*.log
build.properties
repository
.classpath
1.1 avalon-sandbox/kernel/impl/maven.xml
Index: maven.xml
===================================================================
<project default="jar:install" xmlns:maven="jelly:maven" xmlns:j="jelly:core"
xmlns:util="jelly:util" xmlns:ant="jelly:ant">
<postGoal name="java:prepare-filesystem">
<attainGoal name="avalon:artifact"/>
</postGoal>
<!--
###########################################################################
# Create the target .meta metadata. #
# This contains the information used by the factory to identify the #
# the implementation artifact classpath, factory, and whatever else #
# we need to include this jar as the implementation strategy. #
###########################################################################
-->
<postGoal name="java:compile">
<ant:mkdir dir="${maven.build.dir}/classes/${pom.groupId}"/>
<ant:echo
file="${maven.build.dir}/classes/${pom.groupId}/${pom.artifactId}.meta">
#
# Metadata identification.
# This file if generated under the Avalon Repository Main build process.
# It contains a target artifact reference and factory parameters using
# during the bootstrapping of the repository implementation.
#
meta.domain = avalon
meta.classifier = target
meta.version = 1.0
#
# Merlin Implementation target description.
#
avalon.target.group = ${pom.groupId}
avalon.target.name = ${pom.artifactId}
avalon.target.version = ${pom.currentVersion}
avalon.target.factory = org.apache.avalon.merlin.kernel.impl.DefaultFactory
#
# EOF
#
</ant:echo>
<ant:mkdir dir="${maven.repo.local}/${pom.groupId}"/>
<ant:copy toDir="${maven.repo.local}/${pom.groupId}"
file="${maven.build.dir}/classes/${pom.groupId}/${pom.artifactId}.meta"/>
</postGoal>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]