mcconnell 2003/01/15 04:27:32 Added: . threads.xml threads.properties source.xml source.properties sockets.xml sockets.properties scheduler.xml scheduler.properties masterstore.xml masterstore.properties default.properties cornerstone.xml connection.xml connection.properties Log: Buildfiles and properties supporting individual jars. Revision Changes Path 1.1 jakarta-avalon-cornerstone/threads.xml Index: threads.xml =================================================================== <project name="threads" default="main" basedir="."> <property file="ant.properties"/> <property file="${user.home}/.ant.properties"/> <property file="default.properties"/> <property file="${ant.project.name}.properties"/> <path id="project.class.path"> <pathelement location="${junit.jar}"/> <pathelement location="${xerces.jar}"/> <pathelement location="${xalan.jar}"/> <pathelement location="${xml-apis.jar}"/> <pathelement location="${avalon-framework.jar}"/> <pathelement location="${excalibur-thread.jar}"/> <pathelement location="${excalibur-threadcontext.jar}"/> <pathelement location="${metagenerate.jar}"/> <pathelement location="${qdox.jar}"/> <pathelement path="${java.class.path}" /> <pathelement path="${build.classes}" /> </path> <!-- Main target --> <target name="main" depends="jars" description="Create minimal distribution" /> <!-- Compile the project --> <target name="compile"> <mkdir dir="${build.classes}"/> <javac srcdir="${java.dir}" destdir="${build.classes}" debug="${build.debug}" optimize="${build.optimize}" deprecation="${build.deprecation}"> <classpath refid="project.class.path" /> <src path="${java.dir}"/> <include name="**/${ant.project.name}/**.*"/> </javac> </target> <target name="metagenerate" description="Generates the XML descriptors"> <taskdef name="generatemeta" classname="org.apache.avalon.phoenix.tools.metagenerate.MetaGenerateTask"> <classpath refid="project.class.path" /> </taskdef> <generatemeta dest="${build.gen}"> <fileset dir="${java.dir}"> <include name="**/${ant.project.name}/*.java"/> </fileset> </generatemeta> </target> <!-- Creates all the .jar file --> <target name="jars" depends="compile,metagenerate"> <mkdir dir="${build.lib}"/> <mkdir dir="${build.gen}"/> <jar jarfile="${build.lib}/${name}-${package-version}.jar" basedir="${build.classes}"> <manifest> <attribute name="Extension-Name" value="${extension.name}"/> <attribute name="Specification-Vendor" value="${vendor}"/> <attribute name="Specification-Version" value="${version}"/> <attribute name="Implementation-Vendor" value="${vendor}"/> <attribute name="Implementation-Version" value="${package-version}"/> <attribute name="Extension-List" value="framework thread threadcontext"/> <attribute name="framework-Extension-Name" value="${avalon-framework.extension.name}"/> <attribute name="framework-Specification-Version" value="${avalon-framework.extension.version}"/> <attribute name="framework-Implementation-Version" value="${avalon-framework.extension.implementation}"/> </manifest> <include name="org/apache/avalon/cornerstone/blocks/${ant.project.name}/**"/> <include name="org/apache/avalon/cornerstone/services/${ant.project.name}/**"/> <fileset dir="${build.gen}"> <include name="**/${ant.project.name}/**/*.xinfo"/> <include name="**${ant.project.name}/**/*.mxinfo"/> </fileset> <fileset dir="${src.dir}/java"> <include name="**/${ant.project.name}/**/*-schema.xml"/> <include name="**/${ant.project.name}/**/*.xconfig"/> </fileset> </jar> </target> </project> 1.1 jakarta-avalon-cornerstone/threads.properties Index: threads.properties =================================================================== # ------------------------------------------------------------------- # B U I L D P R O P E R T I E S # ------------------------------------------------------------------- # Specifies default property values # Overridden by ../default.properties and all ant.properties # Not user-editable; use ant.properties files instead name=cornerstone-threads Name=Cornerstone Thread Manager version=1.0 package-version=1.0 year=2003 extension.name=org.apache.avalon.conerstone.threads # location of intermediate products build.dir = ${build.root}/${ant.project.name} build.testsrc = ${build.dir}/testsrc build.testclasses = ${build.dir}/testclasses build.conf = ${build.dir}/conf build.classes = ${build.dir}/classes build.gen = ${build.dir}/gen build.tests = ${build.dir}/tests build.reports = ${build.dir}/reports build.docs = ${build.dir}/docs build.javadocs = ${build.docs}/api # -------------------------------------------------- # REQUIRED LIBRARIES # -------------------------------------------------- # ----- Excalibur threadcontext, version 1.0 or later ----- excalibur-threadcontext.home=${excalibur.home}/threadcontext excalibur-threadcontext.lib=${excalibur-threadcontext.home}/build/lib excalibur-threadcontext.jar=${excalibur-threadcontext.lib}/excalibur-threadcontext-1.0.jar # ----- Excalibur thread, version 1.0 or later ----- excalibur-thread.home=${excalibur.home}/thread excalibur-thread.lib=${excalibur-thread.home}/build/lib excalibur-thread.jar=${excalibur-thread.lib}/excalibur-thread-1.0.jar 1.1 jakarta-avalon-cornerstone/source.xml Index: source.xml =================================================================== <project name="source" default="main" basedir="."> <property file="ant.properties"/> <property file="${user.home}/.ant.properties"/> <property file="default.properties"/> <property file="${ant.project.name}.properties"/> <path id="project.class.path"> <pathelement location="${junit.jar}"/> <pathelement location="${xerces.jar}"/> <pathelement location="${xalan.jar}"/> <pathelement location="${xml-apis.jar}"/> <pathelement location="${avalon-framework.jar}"/> <pathelement location="${excalibur-datasource.jar}"/> <pathelement location="${excalibur-pool.jar}"/> <pathelement location="${metagenerate.jar}"/> <pathelement location="${qdox.jar}"/> <pathelement path="${java.class.path}" /> <pathelement path="${build.classes}" /> </path> <!-- Main target --> <target name="main" depends="jars" description="Create minimal distribution" /> <!-- Compile the project --> <target name="compile"> <mkdir dir="${build.classes}"/> <javac srcdir="${java.dir}" destdir="${build.classes}" debug="${build.debug}" optimize="${build.optimize}" deprecation="${build.deprecation}"> <classpath refid="project.class.path" /> <src path="${java.dir}"/> <include name="**/${ant.project.name}/**.*"/> </javac> </target> <target name="metagenerate" description="Generates the XML descriptors"> <taskdef name="generatemeta" classname="org.apache.avalon.phoenix.tools.metagenerate.MetaGenerateTask"> <classpath refid="project.class.path" /> </taskdef> <generatemeta dest="${build.gen}"> <fileset dir="${java.dir}"> <include name="**/${ant.project.name}/*.java"/> </fileset> </generatemeta> </target> <!-- Creates all the .jar file --> <target name="jars" depends="compile,metagenerate"> <mkdir dir="${build.lib}"/> <mkdir dir="${build.gen}"/> <jar jarfile="${build.lib}/${name}-${package-version}.jar" basedir="${build.classes}"> <manifest> <attribute name="Extension-Name" value="${extension.name}"/> <attribute name="Specification-Vendor" value="${vendor}"/> <attribute name="Specification-Version" value="${version}"/> <attribute name="Implementation-Vendor" value="${vendor}"/> <attribute name="Implementation-Version" value="${package-version}"/> <attribute name="Extension-List" value="framework datasource"/> <attribute name="framework-Extension-Name" value="${avalon-framework.extension.name}"/> <attribute name="framework-Specification-Version" value="${avalon-framework.extension.version}"/> <attribute name="framework-Implementation-Version" value="${avalon-framework.extension.implementation}"/> </manifest> <include name="org/apache/avalon/cornerstone/blocks/${ant.project.name}/**"/> <include name="org/apache/avalon/cornerstone/services/${ant.project.name}/**"/> <fileset dir="${build.gen}"> <include name="**/${ant.project.name}/**/*.xinfo"/> <include name="**${ant.project.name}/**/*.mxinfo"/> </fileset> <fileset dir="${src.dir}/java"> <include name="**/${ant.project.name}/**/*-schema.xml"/> <include name="**/${ant.project.name}/**/*.xconfig"/> </fileset> </jar> </target> </project> 1.1 jakarta-avalon-cornerstone/source.properties Index: source.properties =================================================================== # ------------------------------------------------------------------- # B U I L D P R O P E R T I E S # ------------------------------------------------------------------- # Specifies default property values # Overridden by ../default.properties and all ant.properties # Not user-editable; use ant.properties files instead name=cornerstone-source Name=Cornerstone Datasource version=1.0 package-version=1.0 year=2003 extension.name=org.apache.avalon.conerstone.source # location of intermediate products build.dir = ${build.root}/${ant.project.name} build.testsrc = ${build.dir}/testsrc build.testclasses = ${build.dir}/testclasses build.conf = ${build.dir}/conf build.classes = ${build.dir}/classes build.gen = ${build.dir}/gen build.tests = ${build.dir}/tests build.reports = ${build.dir}/reports build.docs = ${build.dir}/docs build.javadocs = ${build.docs}/api # -------------------------------------------------- # REQUIRED LIBRARIES # -------------------------------------------------- # ----- Excalibur threadcontext, version 1.0 or later ----- excalibur-datasource.home=${excalibur.home}/datasource excalibur-datasource.lib=${excalibur-datasource.home}/build/lib excalibur-datasource.jar=${excalibur-datasource.lib}/excalibur-datasource-1.0.jar # ----- Excalibur pool, version 1.0 or later ----- excalibur-pool.home=${excalibur.home}/pool excalibur-pool.lib=${excalibur-pool.home}/build/lib excalibur-pool.jar=${excalibur-pool.lib}/excalibur-pool-1.1.jar 1.1 jakarta-avalon-cornerstone/sockets.xml Index: sockets.xml =================================================================== <project name="sockets" default="main" basedir="."> <property file="ant.properties"/> <property file="${user.home}/.ant.properties"/> <property file="default.properties"/> <property file="${ant.project.name}.properties"/> <path id="project.class.path"> <pathelement location="${junit.jar}"/> <pathelement location="${xerces.jar}"/> <pathelement location="${xalan.jar}"/> <pathelement location="${xml-apis.jar}"/> <pathelement location="${avalon-framework.jar}"/> <pathelement location="${metagenerate.jar}"/> <pathelement location="${qdox.jar}"/> <pathelement path="${java.class.path}" /> <pathelement path="${build.classes}" /> </path> <!-- Main target --> <target name="main" depends="jars" description="Create minimal distribution" /> <!-- Compile the project --> <target name="compile"> <mkdir dir="${build.classes}"/> <javac srcdir="${java.dir}" destdir="${build.classes}" debug="${build.debug}" optimize="${build.optimize}" deprecation="${build.deprecation}"> <classpath refid="project.class.path" /> <src path="${java.dir}"/> <include name="**/${ant.project.name}/**.*"/> </javac> </target> <target name="metagenerate" description="Generates the XML descriptors"> <taskdef name="generatemeta" classname="org.apache.avalon.phoenix.tools.metagenerate.MetaGenerateTask"> <classpath refid="project.class.path" /> </taskdef> <generatemeta dest="${build.gen}"> <fileset dir="${java.dir}"> <include name="**/${ant.project.name}/**/*.java"/> </fileset> </generatemeta> </target> <!-- Creates all the .jar file --> <target name="jars" depends="compile,metagenerate"> <mkdir dir="${build.lib}"/> <mkdir dir="${build.gen}"/> <jar jarfile="${build.lib}/${name}-${package-version}.jar" basedir="${build.classes}"> <manifest> <attribute name="Extension-Name" value="${extension.name}"/> <attribute name="Specification-Vendor" value="${vendor}"/> <attribute name="Specification-Version" value="${version}"/> <attribute name="Implementation-Vendor" value="${vendor}"/> <attribute name="Implementation-Version" value="${package-version}"/> <attribute name="Extension-List" value="framework"/> <attribute name="framework-Extension-Name" value="${avalon-framework.extension.name}"/> <attribute name="framework-Specification-Version" value="${avalon-framework.extension.version}"/> <attribute name="framework-Implementation-Version" value="${avalon-framework.extension.implementation}"/> </manifest> <include name="org/apache/avalon/cornerstone/blocks/${ant.project.name}/**"/> <include name="org/apache/avalon/cornerstone/services/${ant.project.name}/**"/> <fileset dir="${build.gen}"> <include name="**/${ant.project.name}/**/*.xinfo"/> <include name="**${ant.project.name}/**/*.mxinfo"/> </fileset> <fileset dir="${src.dir}/java"> <include name="**/${ant.project.name}/**/*-schema.xml"/> <include name="**/${ant.project.name}/**/*.xconfig"/> </fileset> </jar> </target> </project> 1.1 jakarta-avalon-cornerstone/sockets.properties Index: sockets.properties =================================================================== # ------------------------------------------------------------------- # B U I L D P R O P E R T I E S # ------------------------------------------------------------------- # Specifies default property values # Overridden by ../default.properties and all ant.properties # Not user-editable; use ant.properties files instead name=cornerstone-sockets Name=Cornerstone Socket Manager version=1.0 package-version=1.0 year=2003 extension.name=org.apache.avalon.cornerstone.sockets # location of intermediate products build.dir = ${build.root}/${ant.project.name} build.testsrc = ${build.dir}/testsrc build.testclasses = ${build.dir}/testclasses build.conf = ${build.dir}/conf build.classes = ${build.dir}/classes build.gen = ${build.dir}/gen build.tests = ${build.dir}/tests build.reports = ${build.dir}/reports build.docs = ${build.dir}/docs build.javadocs = ${build.docs}/api # -------------------------------------------------- # REQUIRED LIBRARIES # -------------------------------------------------- 1.1 jakarta-avalon-cornerstone/scheduler.xml Index: scheduler.xml =================================================================== <project name="scheduler" default="main" basedir="."> <property file="ant.properties"/> <property file="${user.home}/.ant.properties"/> <property file="default.properties"/> <property file="${ant.project.name}.properties"/> <path id="project.class.path"> <pathelement location="${junit.jar}"/> <pathelement location="${xerces.jar}"/> <pathelement location="${xalan.jar}"/> <pathelement location="${xml-apis.jar}"/> <pathelement location="${avalon-framework.jar}"/> <pathelement location="${excalibur-thread.jar}"/> <pathelement location="${cornerstone-threads.jar}"/> <pathelement location="${metagenerate.jar}"/> <pathelement location="${qdox.jar}"/> <pathelement path="${java.class.path}" /> <pathelement path="${build.classes}" /> </path> <!-- Main target --> <target name="main" depends="jars" description="Create minimal distribution" /> <!-- Compile the project --> <target name="compile"> <mkdir dir="${build.classes}"/> <javac srcdir="${java.dir}" destdir="${build.classes}" debug="${build.debug}" optimize="${build.optimize}" deprecation="${build.deprecation}"> <classpath refid="project.class.path" /> <src path="${java.dir}"/> <include name="**/${ant.project.name}/**/*.*"/> </javac> </target> <target name="metagenerate" description="Generates the XML descriptors"> <taskdef name="generatemeta" classname="org.apache.avalon.phoenix.tools.metagenerate.MetaGenerateTask"> <classpath refid="project.class.path" /> </taskdef> <generatemeta dest="${build.gen}"> <fileset dir="${java.dir}"> <include name="**/${ant.project.name}/**/*.java"/> </fileset> </generatemeta> </target> <!-- Creates all the .jar file --> <target name="jars" depends="compile,metagenerate"> <mkdir dir="${build.lib}"/> <mkdir dir="${build.gen}"/> <jar jarfile="${build.lib}/${name}-${package-version}.jar" basedir="${build.classes}"> <manifest> <attribute name="Extension-Name" value="${extension.name}"/> <attribute name="Specification-Vendor" value="${vendor}"/> <attribute name="Specification-Version" value="${version}"/> <attribute name="Implementation-Vendor" value="${vendor}"/> <attribute name="Implementation-Version" value="${package-version}"/> <attribute name="Extension-List" value="framework threads"/> <attribute name="framework-Extension-Name" value="${avalon-framework.extension.name}"/> <attribute name="framework-Specification-Version" value="${avalon-framework.extension.version}"/> <attribute name="framework-Implementation-Version" value="${avalon-framework.extension.implementation}"/> <attribute name="threads-Extension-Name" value="${cornerstone-threads.ext.name}"/> <attribute name="threads-Specification-Version" value="${cornerstone-threads.ext.version}"/> <attribute name="threads-Implementation-Version" value="${cornerstone-threads.ext.impl}"/> </manifest> <include name="org/apache/avalon/cornerstone/blocks/${ant.project.name}/**"/> <include name="org/apache/avalon/cornerstone/services/${ant.project.name}/**"/> <fileset dir="${build.gen}"> <include name="**/${ant.project.name}/**/*.xinfo"/> <include name="**${ant.project.name}/**/*.mxinfo"/> </fileset> <fileset dir="${src.dir}/java"> <include name="**/${ant.project.name}/**/*-schema.xml"/> <include name="**/${ant.project.name}/**/*.xconfig"/> </fileset> </jar> </target> </project> 1.1 jakarta-avalon-cornerstone/scheduler.properties Index: scheduler.properties =================================================================== # ------------------------------------------------------------------- # B U I L D P R O P E R T I E S # ------------------------------------------------------------------- # Specifies default property values # Overridden by ../default.properties and all ant.properties # Not user-editable; use ant.properties files instead name=cornerstone-scheduler Name=Cornerstone Scheduler version=1.0 package-version=1.0 year=2003 extension.name=org.apache.avalon.cornerstone.scheduler # location of intermediate products build.dir = ${build.root}/${ant.project.name} build.testsrc = ${build.dir}/testsrc build.testclasses = ${build.dir}/testclasses build.conf = ${build.dir}/conf build.classes = ${build.dir}/classes build.gen = ${build.dir}/gen build.tests = ${build.dir}/tests build.reports = ${build.dir}/reports build.docs = ${build.dir}/docs build.javadocs = ${build.docs}/api # -------------------------------------------------- # REQUIRED LIBRARIES # -------------------------------------------------- # -------------------------------------------------- # REQUIRED LIBRARIES # -------------------------------------------------- # ----- Cornerstone threads, version 1.0 or later ----- cornerstone-threads.home=. cornerstone-threads.lib=${cornerstone-threads.home}/build/lib cornerstone-threads.jar=${excalibur-threadcontext.lib}/cornerstone-threads-1.0.jar cornerstone-threads.ext.name=org.apache.avalon.cornerstone.threads cornerstone-threads.ext.version=1.0 cornerstone-threads.ext.impl=1.0 # ----- Excalibur threadcontext, version 1.0 or later ----- excalibur-threadcontext.home=${excalibur.home}/threadcontext excalibur-threadcontext.lib=${excalibur-threadcontext.home}/build/lib excalibur-threadcontext.jar=${excalibur-threadcontext.lib}/excalibur-threadcontext-1.0.jar # ----- Excalibur thread, version 1.0 or later ----- excalibur-thread.home=${excalibur.home}/thread excalibur-thread.lib=${excalibur-thread.home}/build/lib excalibur-thread.jar=${excalibur-thread.lib}/excalibur-thread-1.0.jar 1.1 jakarta-avalon-cornerstone/masterstore.xml Index: masterstore.xml =================================================================== <project name="masterstore" default="main" basedir="."> <property file="ant.properties"/> <property file="${user.home}/.ant.properties"/> <property file="default.properties"/> <property file="${ant.project.name}.properties"/> <path id="project.class.path"> <pathelement location="${junit.jar}"/> <pathelement location="${xerces.jar}"/> <pathelement location="${xalan.jar}"/> <pathelement location="${xml-apis.jar}"/> <pathelement location="${avalon-framework.jar}"/> <pathelement location="${excalibur-io.jar}"/> <pathelement location="${metagenerate.jar}"/> <pathelement location="${qdox.jar}"/> <pathelement path="${java.class.path}" /> <pathelement path="${build.classes}" /> </path> <!-- Main target --> <target name="main" depends="jars" description="Create minimal distribution" /> <!-- Compile the project --> <target name="compile"> <mkdir dir="${build.classes}"/> <javac srcdir="${java.dir}" destdir="${build.classes}" debug="${build.debug}" optimize="${build.optimize}" deprecation="${build.deprecation}"> <classpath refid="project.class.path" /> <src path="${java.dir}"/> <include name="**/${ant.project.name}/**.*"/> <include name="**/store/**.*"/> </javac> </target> <target name="metagenerate" description="Generates the XML descriptors"> <taskdef name="generatemeta" classname="org.apache.avalon.phoenix.tools.metagenerate.MetaGenerateTask"> <classpath refid="project.class.path" /> </taskdef> <generatemeta dest="${build.gen}"> <fileset dir="${java.dir}"> <include name="**/${ant.project.name}/**/*.java"/> </fileset> </generatemeta> </target> <!-- Creates all the .jar file --> <target name="jars" depends="compile,metagenerate"> <mkdir dir="${build.lib}"/> <mkdir dir="${build.gen}"/> <jar jarfile="${build.lib}/${name}-${package-version}.jar" basedir="${build.classes}"> <manifest> <attribute name="Extension-Name" value="${extension.name}"/> <attribute name="Specification-Vendor" value="${vendor}"/> <attribute name="Specification-Version" value="${version}"/> <attribute name="Implementation-Vendor" value="${vendor}"/> <attribute name="Implementation-Version" value="${package-version}"/> <attribute name="Extension-List" value="framework io"/> <attribute name="framework-Extension-Name" value="${avalon-framework.extension.name}"/> <attribute name="framework-Specification-Version" value="${avalon-framework.extension.version}"/> <attribute name="framework-Implementation-Version" value="${avalon-framework.extension.implementation}"/> </manifest> <include name="org/apache/avalon/cornerstone/blocks/${ant.project.name}/**"/> <include name="org/apache/avalon/cornerstone/services/store/**"/> <fileset dir="${build.gen}"> <include name="**/${ant.project.name}/**/*.xinfo"/> <include name="**${ant.project.name}/**/*.mxinfo"/> </fileset> <fileset dir="${src.dir}/java"> <include name="**/${ant.project.name}/**/*-schema.xml"/> <include name="**/${ant.project.name}/**/*.xconfig"/> </fileset> </jar> </target> </project> 1.1 jakarta-avalon-cornerstone/masterstore.properties Index: masterstore.properties =================================================================== # ------------------------------------------------------------------- # B U I L D P R O P E R T I E S # ------------------------------------------------------------------- # Specifies default property values # Overridden by ../default.properties and all ant.properties # Not user-editable; use ant.properties files instead name=cornerstone-store Name=Cornerstone Store Manager version=1.0 package-version=1.0 year=2003 extension.name=org.apache.avalon.cornerstone.store # location of intermediate products build.dir = ${build.root}/${ant.project.name} build.testsrc = ${build.dir}/testsrc build.testclasses = ${build.dir}/testclasses build.conf = ${build.dir}/conf build.classes = ${build.dir}/classes build.gen = ${build.dir}/gen build.tests = ${build.dir}/tests build.reports = ${build.dir}/reports build.docs = ${build.dir}/docs build.javadocs = ${build.docs}/api # -------------------------------------------------- # REQUIRED LIBRARIES # -------------------------------------------------- # ----- Excalibur io, version 1.0 or later ----- excalibur-io.home=${excalibur.home}/io excalibur-io.lib=${excalibur-io.home}/build/lib excalibur-io.jar=${excalibur-io.lib}/excalibur-io-1.1.jar 1.1 jakarta-avalon-cornerstone/default.properties Index: default.properties =================================================================== # ------------------------------------------------------------------- # B U I L D P R O P E R T I E S # ------------------------------------------------------------------- # Specifies default property values # Overridden by ../default.properties and all ant.properties # Not user-editable; use ant.properties files instead year=2003 vendor=Apache Software Foundation # -------------------------------------------------- # REQUIRED LIBRARIES # -------------------------------------------------- # ----- Avalon Framework ----- avalon-framework.home=${basedir}/../jakarta-avalon avalon-framework.lib=${avalon-framework.home}/target/lib avalon-framework.jar=${avalon-framework.lib}/avalon-framework.jar avalon-framework.extension.name=avalon-framework avalon-framework.extension.version=1.0 avalon-framework.extension.implementation=4.1.2 # ----- Excalibur ----- excalibur.home=${basedir}/../jakarta-avalon-excalibur # ----- Tools ----- tools.dir=${avalon-framework.home}/tools tools.lib=${tools.dir}/lib xalan.jar=${tools.lib}/xalan-2.3.1.jar xerces.jar=${tools.lib}/xerces-2.0.1.jar xml-apis.jar=${tools.lib}/xml-apis.jar # ----- Metagenate Tools ----- metagenerate.jar=lib/phoenix-metagenerate.jar qdox.jar=lib/qdox-1.0.jar # -------------------------------------------------- # Settings used to configure compile environment build.debug = on build.optimize = off build.deprecation = off build.compress = false junit.failonerror = false # location of intermediate products build.root = build build.lib = ${build.root}/lib # Set the properties for source directories src.dir = src java.dir = ${src.dir}/java conf.dir = ${src.dir}/conf etc.dir = ${src.dir}/etc test.dir = ${src.dir}/test docs.dir = ${src.dir}/docs 1.1 jakarta-avalon-cornerstone/cornerstone.xml Index: cornerstone.xml =================================================================== <project name="cornerstone" default="main" basedir="."> <property file="ant.properties"/> <property file="${user.home}/.ant.properties"/> <property file="default.properties"/> <!-- Main target --> <target name="main" depends="threads,sockets,scheduler,source,masterstore,connection"/> <target name="context"> <uptodate property="threads-uptodate" targetfile="${build.dir}/lib/conerstone-threads-1.0.jar"> <srcfiles dir="${src.dir}/java"> <include name="**/threads/**/*.*"/> </srcfiles> </uptodate> <uptodate property="sockets-uptodate" targetfile="${build.dir}/lib/conerstone-sockets-1.0.jar"> <srcfiles dir="${src.dir}/java"> <include name="**/sockets/**/*.*"/> </srcfiles> </uptodate> <uptodate property="scheduler-uptodate" targetfile="${build.dir}/lib/conerstone-scheduler-1.0.jar"> <srcfiles dir="${src.dir}/java"> <include name="**/scheduler/**/*.*"/> </srcfiles> </uptodate> <uptodate property="masterstore-uptodate" targetfile="${build.dir}/lib/conerstone-store-1.0.jar"> <srcfiles dir="${src.dir}/java"> <include name="**/masterstore/**/*.*"/> <include name="**/store/**/*.*"/> </srcfiles> </uptodate> <uptodate property="source-uptodate" targetfile="${build.dir}/lib/conerstone-source-1.0.jar"> <srcfiles dir="${src.dir}/java"> <include name="**/source/**/*.*"/> </srcfiles> </uptodate> <uptodate property="connection-uptodate" targetfile="${build.dir}/lib/conerstone-connection-1.0.jar"> <srcfiles dir="${src.dir}/java"> <include name="**/connection/**/*.*"/> </srcfiles> </uptodate> </target> <target name="threads" depends="context" unless="threads-uptodate"> <ant antfile="threads.xml" inheritall="false"/> </target> <target name="sockets" depends="context" unless="sockets-uptodate"> <ant antfile="sockets.xml" inheritall="false"/> </target> <target name="scheduler" depends="context" unless="scheduler-uptodate"> <ant antfile="scheduler.xml" inheritall="false"/> </target> <target name="masterstore" depends="context" unless="masterstore-uptodate"> <ant antfile="masterstore.xml" inheritall="false"/> </target> <target name="source" depends="context" unless="source-uptodate"> <ant antfile="source.xml" inheritall="false"/> </target> <target name="connection" depends="context" unless="connection-uptodate"> <ant antfile="connection.xml" inheritall="false"/> </target> </project> 1.1 jakarta-avalon-cornerstone/connection.xml Index: connection.xml =================================================================== <project name="connection" default="main" basedir="."> <property file="ant.properties"/> <property file="${user.home}/.ant.properties"/> <property file="default.properties"/> <property file="${ant.project.name}.properties"/> <path id="project.class.path"> <pathelement location="${junit.jar}"/> <pathelement location="${xerces.jar}"/> <pathelement location="${xalan.jar}"/> <pathelement location="${xml-apis.jar}"/> <pathelement location="${avalon-framework.jar}"/> <pathelement location="${cornerstone-threads.jar}"/> <pathelement location="${excalibur-thread.jar}"/> <pathelement location="${excalibur-threadcontext.jar}"/> <pathelement location="${metagenerate.jar}"/> <pathelement location="${qdox.jar}"/> <pathelement path="${java.class.path}" /> <pathelement path="${build.classes}" /> </path> <!-- Main target --> <target name="main" depends="jars" description="Create minimal distribution" /> <!-- Compile the project --> <target name="compile"> <mkdir dir="${build.classes}"/> <javac srcdir="${java.dir}" destdir="${build.classes}" debug="${build.debug}" optimize="${build.optimize}" deprecation="${build.deprecation}"> <classpath refid="project.class.path" /> <src path="${java.dir}"/> <include name="**/${ant.project.name}/**.*"/> </javac> </target> <target name="metagenerate" description="Generates the XML descriptors"> <taskdef name="generatemeta" classname="org.apache.avalon.phoenix.tools.metagenerate.MetaGenerateTask"> <classpath refid="project.class.path" /> </taskdef> <generatemeta dest="${build.gen}"> <fileset dir="${java.dir}"> <include name="**/${ant.project.name}/*.java"/> </fileset> </generatemeta> </target> <!-- Creates all the .jar file --> <target name="jars" depends="compile,metagenerate"> <mkdir dir="${build.lib}"/> <mkdir dir="${build.gen}"/> <jar jarfile="${build.lib}/${name}-${package-version}.jar" basedir="${build.classes}"> <manifest> <attribute name="Extension-Name" value="${extension.name}"/> <attribute name="Specification-Vendor" value="${vendor}"/> <attribute name="Specification-Version" value="${version}"/> <attribute name="Implementation-Vendor" value="${vendor}"/> <attribute name="Implementation-Version" value="${package-version}"/> <attribute name="Extension-List" value="framework threads"/> <attribute name="framework-Extension-Name" value="${avalon-framework.extension.name}"/> <attribute name="framework-Specification-Version" value="${avalon-framework.extension.version}"/> <attribute name="framework-Implementation-Version" value="${avalon-framework.extension.implementation}"/> <attribute name="threads-Extension-Name" value="${cornerstone-threads.ext.name}"/> <attribute name="threads-Specification-Version" value="${cornerstone-threads.ext.version}"/> <attribute name="threads-Implementation-Version" value="${cornerstone-threads.ext.impl}"/> </manifest> <include name="org/apache/avalon/cornerstone/blocks/${ant.project.name}/**"/> <include name="org/apache/avalon/cornerstone/services/${ant.project.name}/**"/> <fileset dir="${build.gen}"> <include name="**/${ant.project.name}/**/*.xinfo"/> <include name="**${ant.project.name}/**/*.mxinfo"/> </fileset> <fileset dir="${src.dir}/java"> <include name="**/${ant.project.name}/**/*-schema.xml"/> <include name="**/${ant.project.name}/**/*.xconfig"/> </fileset> </jar> </target> </project> 1.1 jakarta-avalon-cornerstone/connection.properties Index: connection.properties =================================================================== # ------------------------------------------------------------------- # B U I L D P R O P E R T I E S # ------------------------------------------------------------------- # Specifies default property values # Overridden by ../default.properties and all ant.properties # Not user-editable; use ant.properties files instead name=cornerstone-connection Name=Cornerstone Connection Manager version=1.0 package-version=1.0 year=2003 extension.name=org.apache.avalon.conerstone.connection # location of intermediate products build.dir = ${build.root}/${ant.project.name} build.testsrc = ${build.dir}/testsrc build.testclasses = ${build.dir}/testclasses build.conf = ${build.dir}/conf build.classes = ${build.dir}/classes build.gen = ${build.dir}/gen build.tests = ${build.dir}/tests build.reports = ${build.dir}/reports build.docs = ${build.dir}/docs build.javadocs = ${build.docs}/api # -------------------------------------------------- # REQUIRED LIBRARIES # -------------------------------------------------- # ----- Cornerstone threads, version 1.0 or later ----- cornerstone-threads.home=. cornerstone-threads.lib=${cornerstone-threads.home}/build/lib cornerstone-threads.jar=${excalibur-threadcontext.lib}/cornerstone-threads-1.0.jar cornerstone-threads.ext.name=org.apache.avalon.cornerstone.threads cornerstone-threads.ext.version=1.0 cornerstone-threads.ext.impl=1.0 # ----- Excalibur threadcontext, version 1.0 or later ----- excalibur-threadcontext.home=${excalibur.home}/threadcontext excalibur-threadcontext.lib=${excalibur-threadcontext.home}/build/lib excalibur-threadcontext.jar=${excalibur-threadcontext.lib}/excalibur-threadcontext-1.0.jar # ----- Excalibur thread, version 1.0 or later ----- excalibur-thread.home=${excalibur.home}/thread excalibur-thread.lib=${excalibur-thread.home}/build/lib excalibur-thread.jar=${excalibur-thread.lib}/excalibur-thread-1.0.jar
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>