mcconnell 2003/10/12 08:09:06 Modified: event README.txt project.xml maven.xml .cvsignore Removed: event project.properties Log: Update build to use api/impl seperation. Revision Changes Path 1.5 +6 -3 avalon-excalibur/event/README.txt Index: README.txt =================================================================== RCS file: /home/cvs/avalon-excalibur/event/README.txt,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- README.txt 22 Jun 2002 16:35:01 -0000 1.4 +++ README.txt 12 Oct 2003 15:09:06 -0000 1.5 @@ -5,7 +5,10 @@ asynchronous command processing, and the interfaces to support event based programming. Fortress uses this project to manage the components and its pools outside of the direct thread of -execution. It has been tested, and only a couple of clean up -things need to be done to make this an officially released -package. +execution. + +To build the project: + +$ cd event +$ maven event:build 1.3 +58 -47 avalon-excalibur/event/project.xml Index: project.xml =================================================================== RCS file: /home/cvs/avalon-excalibur/event/project.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- project.xml 16 Jun 2003 16:05:41 -0000 1.2 +++ project.xml 12 Oct 2003 15:09:06 -0000 1.3 @@ -1,53 +1,64 @@ <?xml version="1.0" encoding="UTF-8"?> <project> - <extend>${basedir}/../project-common.xml</extend> - <name>Event</name> - <id>excalibur-event</id> - <currentVersion>1.0.4-dev</currentVersion> - <inceptionYear>2003</inceptionYear> - <shortDescription>Excalibur's Event component</shortDescription> - <description> -This project doesn't have a description yet. Edit the file - - event/project.xml - -to add one. - </description> - - <dependencies> - <dependency> - <id>avalon-framework</id> - <version>4.1.4</version> - <groupId>framework</groupId> - </dependency> - <dependency> - <id>concurrent</id> - <version>1.3.1</version> - </dependency> - <dependency> - <id>commons-collections</id> - <version>2.1</version> - </dependency> - <dependency> - <id>excalibur-instrument</id> - <version>1.0</version> - <groupId>excalibur-instrument</groupId> - </dependency> - <dependency> - <id>excalibur-pool</id> - <version>1.2</version> - </dependency> - <dependency> - <id>logkit</id> - <version>1.2</version> - </dependency> - <dependency> - <id>excalibur-testcase</id> - <version>1.1</version> - <groupId>excalibur-component</groupId> - </dependency> - </dependencies> + <name>Excalibur Event</name> + <groupId>excalibur-event</groupId> + <id>excalibur-event</id> + <currentVersion>1.0.4-dev</currentVersion> + <inceptionYear>2002</inceptionYear> + + <organization> + <name>Apache Software Foundation</name> + <url>http://jakarta.apache.org/</url> + <logo>http://avalon.apache.org/images/apache-avalon-logo.png</logo> + </organization> + + <package>org.apache.*</package> + + <url>http://avalon.apache.org/excalibur/event</url> + <issueTrackingUrl>http://nagoya.apache.org/</issueTrackingUrl> + <siteAddress>avalon.apache.org/excalibur/event</siteAddress> + <siteDirectory>/site/excalibur/event/</siteDirectory> + <distributionDirectory></distributionDirectory> + + <repository> + <connection>scm:cvs:pserver:[EMAIL PROTECTED]:/home/cvspublic:avalon-excalibur/lifecycle</connection> + <url>http://cvs.apache.org/viewcvs/avalon-excalibur/event/</url> + </repository> + + <mailingLists> + <mailingList> + <name>Avalon Dev List</name> + <subscribe>[EMAIL PROTECTED]</subscribe> + <unsubscribe>[EMAIL PROTECTED]</unsubscribe> + <archive>http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]</archive> + </mailingList> + <mailingList> + <name>Avalon User List</name> + <subscribe>[EMAIL PROTECTED]</subscribe> + <unsubscribe>[EMAIL PROTECTED]</unsubscribe> + <archive>http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]</archive> + </mailingList> + </mailingLists> + + <developers> + <developer> + <name>Berin Loritsch</name> + <id>bloritsch</id> + <email>[EMAIL PROTECTED]</email> + </developer> + <developer> + <name>Stephen McConnell</name> + <id>mcconnell</id> + <email>[EMAIL PROTECTED]</email> + </developer> + </developers> + + <reports> + <report>maven-changelog-plugin</report> + <report>maven-file-activity-plugin</report> + <report>maven-developer-activity-plugin</report> + </reports> </project> 1.2 +201 -13 avalon-excalibur/event/maven.xml Index: maven.xml =================================================================== RCS file: /home/cvs/avalon-excalibur/event/maven.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- maven.xml 7 Jun 2003 19:26:23 -0000 1.1 +++ maven.xml 12 Oct 2003 15:09:06 -0000 1.2 @@ -1,17 +1,205 @@ -<?xml version="1.0"?> +<project default="event:build" xmlns:maven="jelly:maven" xmlns:j="jelly:core" xmlns:util="jelly:util" xmlns:ant="jelly:ant"> -<project default="java:jar" - xmlns:j="jelly:core" - xmlns:ant="jelly:ant"> - - <!-- include the excalibur-wide custom project properties --> - <property file="${basedir}/project.properties"/> - <property file="${basedir}/../project.properties"/> - <property file="${basedir}/../../project.properties"/> - <property file="${basedir}/../../../project.properties"/> - <property file="${basedir}/../../../../project.properties"/> + <ant:property name="maven.dist.assembly.dir" + value="${maven.build.dir}/temp"/> + <ant:property name="maven.dist.bin.archive.dir" + value="${maven.dist.assembly.dir}/bin"/> + <ant:property name="maven.dist.src.archive.dir" + value="${maven.dist.assembly.dir}/src"/> + <ant:property name="maven.dist.bin.assembly.dir" + value="${maven.dist.assembly.dir}/bin/${pom.artifactId}"/> + <ant:property name="maven.dist.src.assembly.dir" + value="${maven.dist.assembly.dir}/src/${pom.artifactId}"/> + <ant:property name="maven.dist.dir" + value="${maven.build.dir}/distributions"/> + + <goal name="event:clean" prereqs="clean"> + <maven:reactor + basedir="${basedir}" + includes="*/project.xml" + goals="clean" + banner="Cleaning:" + ignoreFailures="false"/> + </goal> + + <goal name="event:build"> + + <echo> + +Building the package using the default target "event:build". +The complete set of target include: + + event:clean + event:build + event:build-snapshot + event:dist + </echo> + + <maven:reactor + basedir="${basedir}" + includes="*/project.xml" + excludes="site/project.xml" + goals="jar:install" + banner="Building:" + ignoreFailures="false"/> + <ant:copy todir="${maven.build.dir}"> + <ant:fileset dir="${basedir}/api/target"> + <ant:include name="${pom.artifactId}-api-${pom.currentVersion}.jar"/> + </ant:fileset> + <ant:fileset dir="${basedir}/impl/target"> + <ant:include name="${pom.artifactId}-impl-${pom.currentVersion}.jar"/> + </ant:fileset> + </ant:copy> + </goal> + + <goal name="event:build-snapshot"> + <maven:reactor + basedir="${basedir}" + includes="*/project.xml" + excludes="site/project.xml" + goals="jar:install-snapshot" + banner="Building snapshot:" + ignoreFailures="false"/> + </goal> + + <!-- + <goal name="event:site"> + <maven:reactor + basedir="${basedir}" + includes="site/project.xml" + goals="site" + banner="Building site:" + ignoreFailures="false"/> + </goal> + --> + + <goal name="event:dist" prereqs="event:build,xdist"/> + + <goal + name="xdist:prepare-bin-filesystem" + description="Builds the jar files."> + + <ant:delete dir="${maven.dist.bin.assembly.dir}"/> + <ant:mkdir dir="${maven.dist.bin.assembly.dir}"/> + <ant:echo> + +-------------------------------------------------------+ + | C R E A T I N G B I N A R Y D I S T R I B U T I O N | + +-------------------------------------------------------+ + </ant:echo> + <ant:copy todir="${maven.dist.bin.assembly.dir}"> + <ant:fileset dir="."> + <ant:include name="README.txt"/> + <ant:include name="LICENSE*"/> + </ant:fileset> + </ant:copy> + + <!-- Copy Jars --> + <ant:copy todir="${maven.dist.bin.assembly.dir}"> + <ant:fileset dir="${maven.build.dir}"> + <ant:include name="${pom.artifactId}-api-${pom.currentVersion}.jar"/> + <ant:include name="${pom.artifactId}-impl-${pom.currentVersion}.jar"/> + </ant:fileset> + </ant:copy> + </goal> + + <goal + name="xdist:prepare-src-filesystem" + description="Builds the source distribution file system."> + <ant:delete dir="${maven.dist.src.assembly.dir}" /> + <ant:mkdir dir="${maven.dist.src.assembly.dir}" /> + + <ant:echo> + +-------------------------------------------------------+ + | C R E A T I N G S O U R C E D I S T R I B U T I O N | + +-------------------------------------------------------+ + </ant:echo> + + <ant:copy todir="${maven.dist.src.assembly.dir}"> + <ant:fileset dir="."> + <ant:include name="README.txt"/> + <ant:include name="LICENSE*"/> + <ant:include name="project.properties"/> + <ant:include name="maven.xml"/> + <ant:include name="project.xml"/> + </ant:fileset> + </ant:copy> + + <!-- Copy Source --> + <ant:copy todir="${maven.dist.src.assembly.dir}"> + <ant:fileset dir="${basedir}"> + <include name="api/**"/> + <include name="impl/**"/> + <exclude name="**/target/**"/> + <exclude name="**/*.log"/> + </ant:fileset> + </ant:copy> + + </goal> + + <goal name="xdist" + prereqs="xdist:build" + description="Build a complete distribution."> + </goal> + + <goal + name="xdist:build" + prereqs="xdist:build-bin,xdist:build-src" + description="Build a complete distribution."> + </goal> + + <goal + name="xdist:build-setup" + description="Set up directories for a distribution build"> + <ant:delete dir="${maven.dist.dir}"/> + <ant:mkdir dir="${maven.dist.dir}"/> + </goal> + + <goal + name="xdist:build-bin" + prereqs="xdist:build-setup,xdist:prepare-bin-filesystem" + description="Build the binary distribution."> + + <!-- Create a tar.gz file --> + <ant:tar longfile="gnu" tarfile="${maven.dist.dir}/${maven.final.name}.tar"> + <ant:tarfileset dir="${maven.dist.bin.archive.dir}"/> + </ant:tar> + + <ant:gzip + zipfile="${maven.dist.dir}/${maven.final.name}.tar.gz" + src="${maven.dist.dir}/${maven.final.name}.tar" + /> + + <ant:delete file="${maven.dist.dir}/${maven.final.name}.tar"/> + + <!-- Create a zip file --> + <ant:zip zipfile="${maven.dist.dir}/${maven.final.name}.zip"> + <ant:zipfileset dir="${maven.dist.bin.archive.dir}"/> + </ant:zip> + </goal> + + <goal + name="xdist:build-src" + prereqs="xdist:build-setup,xdist:prepare-src-filesystem" + description="Build the source distribution."> + + <!-- Create a tar.gz file --> + <ant:tar longfile="gnu" tarfile="${maven.dist.dir}/${maven.final.name}-src.tar"> + <ant:tarfileset dir="${maven.dist.src.archive.dir}"/> + </ant:tar> + + <ant:gzip + zipfile="${maven.dist.dir}/${maven.final.name}-src.tar.gz" + src="${maven.dist.dir}/${maven.final.name}-src.tar" + /> + + <ant:delete file="${maven.dist.dir}/${maven.final.name}-src.tar"/> + + <!-- Create a zip file --> + <ant:zip zipfile="${maven.dist.dir}/${maven.final.name}-src.zip"> + <ant:zipfileset dir="${maven.dist.src.archive.dir}"/> + </ant:zip> + + </goal> - <!-- include the excalibur-wide custom goal decorators from maven-common.xml --> - <j:import file="${basedir}/../maven-common.xml" inherit="true"/> </project> 1.2 +4 -8 avalon-excalibur/event/.cvsignore Index: .cvsignore =================================================================== RCS file: /home/cvs/avalon-excalibur/event/.cvsignore,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- .cvsignore 30 Mar 2002 21:14:11 -0000 1.1 +++ .cvsignore 12 Oct 2003 15:09:06 -0000 1.2 @@ -1,8 +1,4 @@ -ant.properties -build -checkstyle.cache -distributions -dist -excalibur-* -*.el -*.ipr +maven.log +velocity.log +build.properties +target
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]