[CJ-dev] commonjava-projects/commonjava-config/projects/jboss-config-service maven.xml,NONE,1.1 proj
Brought to you by:
johnqueso
From: <joh...@co...> - 2004-02-19 23:27:48
|
Update of /cvsroot/commonjava/commonjava-projects/commonjava-config/projects/jboss-config-service In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26482/projects/jboss-config-service Modified Files: project.properties project.xml Added Files: maven.xml Log Message: added new classes for managing snap-ins via JBoss service. --- NEW FILE: maven.xml --- <?xml version="1.0" encoding="UTF-8"?> <project default="jar:jar" xmlns:c="jelly:core" xmlns:ant="jelly:ant"> <goal name="sar"> <attain> <attainGoal name="jar:jar"/> <ant:copy file="${maven.build.dir}/${maven.final.name}.jar" tofile="${maven.build.dir}/${maven.final.name}.sar"/> </attain> </goal> <preGoal name="jar:jar"> <ant:copy todir="${maven.build.dest}"> <ant:fileset dir="${basedir}"> <ant:include name="SomeNonExistentFile"/> </ant:fileset> <c:forEach var="lib" items="${pom.artifacts}"> <c:set var="dep" value="${lib.dependency}"/> <c:if test="${dep.getProperty('jar.bundle') == 'true'}"> <ant:echo>Bundling ${dep.id} - ${dep.artifact}</ant:echo> <ant:fileset dir="${lib.file.parent}"> <ant:include name="${lib.file.name}"/> </ant:fileset> </c:if> </c:forEach> </ant:copy> </preGoal> <preGoal name="eclipse"> <attainGoal name="java:compile"/> </preGoal> <!-- TASKS: | 1. Create generated-source directory and copy all existing source to it. | 2. Generate full java source via XDoclet. | 3. Backup the maven.src.dir variable to maven.oldsrc.dir. | 4. Re-init the sourcesPresent, maven.compile.src.set, etc. |--> <preGoal name="java:compile"> <c:if test="${empty(maven.gensrc.dir)}"> <c:set var="maven.gensrc.dir" value="${maven.build.dir}/generated-source"/> </c:if> <ant:taskdef classname="xdoclet.modules.jmx.JMXDocletTask" name="jmxdoclet"> <ant:classpath> <ant:path refid="maven.dependency.classpath" /> </ant:classpath> </ant:taskdef> <ant:mkdir dir="${maven.gensrc.dir}"/> <ant:copy todir="${maven.gensrc.dir}"> <ant:fileset dir="${pom.build.sourceDirectory}"/> </ant:copy> <ant:echo>Starting JMXDoclet...</ant:echo> <ant:jmxdoclet destDir="${maven.gensrc.dir}" verbose="true"> <ant:fileset dir="${maven.gensrc.dir}"/> <ant:echo>Test</ant:echo> <ant:mbeaninterface/> </ant:jmxdoclet> <ant:echo>...Finished JMXDoclet</ant:echo> <c:set var="maven.oldsrc.dir" value="${maven.src.dir}"/> <c:set var="maven.src.dir" value="${maven.gensrc.dir}"/> <c:set target="${pom.build}" property="sourceDirectory" value="${maven.src.dir}"/> <ant:echo>maven.src.dir is now ${maven.src.dir}</ant:echo> <ant:echo>pom.build.sourceDirectory is now ${pom.build.sourceDirectory}</ant:echo> <!-- Swiped from: --> <!-- ================================================================== --> <!-- D R I V E R I N I T I A L I Z A T I O N --> <!-- ================================================================== --> <!-- All things we want to provide to all plugins, or processes we --> <!-- performed before every build are declared/defined here. --> <!-- ================================================================== --> <c:if test="${!empty(maven.src.dir)}"> <ant:available property="sourcesPresent" file="${maven.src.dir}"/> </c:if> <ant:path id="maven-classpath"> <ant:fileset dir="${maven.home}/lib"/> </ant:path> <c:if test="${sourcesPresent == 'true'}"> <!-- | FIXME: It would be nice for other plugins to have the source available | as a fileset |--> <ant:path id="maven.compile.src.set"> <ant:pathelement location="${maven.src.dir}"/> </ant:path> </c:if> </preGoal> </project> Index: project.properties =================================================================== RCS file: /cvsroot/commonjava/commonjava-projects/commonjava-config/projects/jboss-config-service/project.properties,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- project.properties 18 Feb 2004 06:11:01 -0000 1.1 +++ project.properties 19 Feb 2004 23:17:07 -0000 1.2 @@ -3,3 +3,4 @@ maven.repo.central=www.commonjava.org maven.repo.central.directory=/usr/local/maven-repository +maven.jar.manifest.classpath.add=true Index: project.xml =================================================================== RCS file: /cvsroot/commonjava/commonjava-projects/commonjava-config/projects/jboss-config-service/project.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- project.xml 18 Feb 2004 06:11:01 -0000 1.1 +++ project.xml 19 Feb 2004 23:17:07 -0000 1.2 @@ -16,16 +16,13 @@ <dependencies> <dependency> <groupId>commonjava</groupId> - <artifactId>commonjava-enterprise-services</artifactId> - <version>2.1-1</version> - <url>http://www.commonjava.org</url> - </dependency> - - <dependency> - <groupId>commonjava</groupId> <artifactId>commonjava-config</artifactId> <version>2.1-1</version> <url>http://www.commonjava.org</url> + <properties> + <jar.bundle>true</jar.bundle> + <jar.manifest.classpath>true</jar.manifest.classpath> + </properties> </dependency> <dependency> @@ -63,6 +60,10 @@ <artifactId>commonjava-lang</artifactId> <version>2.0</version> <url>http://www.commonjava.org</url> + <properties> + <jar.bundle>true</jar.bundle> + <jar.manifest.classpath>true</jar.manifest.classpath> + </properties> </dependency> <dependency> @@ -70,6 +71,10 @@ <artifactId>commonjava-opl</artifactId> <version>2.1-4</version> <url>http://www.commonjava.org</url> + <properties> + <jar.bundle>true</jar.bundle> + <jar.manifest.classpath>true</jar.manifest.classpath> + </properties> </dependency> <dependency> @@ -77,6 +82,10 @@ <artifactId>commonjava-io</artifactId> <version>2.0</version> <url>http://www.commonjava.org</url> + <properties> + <jar.bundle>true</jar.bundle> + <jar.manifest.classpath>true</jar.manifest.classpath> + </properties> </dependency> <dependency> @@ -84,6 +93,10 @@ <artifactId>commonjava-reflection</artifactId> <version>2.0</version> <url>http://www.commonjava.org</url> + <properties> + <jar.bundle>true</jar.bundle> + <jar.manifest.classpath>true</jar.manifest.classpath> + </properties> </dependency> <dependency> @@ -91,6 +104,10 @@ <artifactId>commonjava-util</artifactId> <version>2.0-2</version> <url>http://www.commonjava.org</url> + <properties> + <jar.bundle>true</jar.bundle> + <jar.manifest.classpath>true</jar.manifest.classpath> + </properties> </dependency> <dependency> @@ -98,8 +115,43 @@ <artifactId>commons-logging</artifactId> <version>1.0.2</version> <url>http://jakarta.apache.org/commons/logging.html</url> + <properties> + <jar.bundle>true</jar.bundle> + <jar.manifest.classpath>true</jar.manifest.classpath> + </properties> </dependency> + <!-- following is for XDoclet --> + <dependency> + <groupId>xjavadoc</groupId> + <artifactId>xjavadoc</artifactId> + <version>1.0.2</version> + </dependency> + + <dependency> + <groupId>xdoclet</groupId> + <artifactId>xdoclet</artifactId> + <version>1.2</version> + </dependency> + + <dependency> + <groupId>xdoclet</groupId> + <artifactId>xdoclet-jmx-module</artifactId> + <version>1.2</version> + </dependency> + + <dependency> + <groupId>commons-collections</groupId> + <artifactId>commons-collections</artifactId> + <version>2.1</version> + </dependency> + + <dependency> + <groupId>commons-logging</groupId> + <artifactId>commons-logging</artifactId> + <version>1.0.2</version> + </dependency> + <!-- end of XDoclet dependencies --> </dependencies> <build> @@ -108,7 +160,7 @@ <sourceModification> <className>AlwaysPerformTheseModifications</className> <excludes> - <exclude>**/JBossSnapInServiceLoader.java</exclude> + <exclude>**/*Loader.java</exclude> </excludes> </sourceModification> </sourceModifications> @@ -132,6 +184,9 @@ <include>META-INF/**</include> </includes> </resource> + <resource> + <directory>${basedir}/src/config</directory> + </resource> </resources> </build> |