You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ps...@apache.org on 2004/02/03 06:54:36 UTC
svn commit: rev 6439 - in incubator/directory/naming/trunk: . core factory xdocs
Author: psteitz
Date: Mon Feb 2 21:54:35 2004
New Revision: 6439
Added:
incubator/directory/naming/trunk/build.xml
incubator/directory/naming/trunk/core/build.xml
incubator/directory/naming/trunk/factory/build.xml
Modified:
incubator/directory/naming/trunk/xdocs/building.xml
Log:
Added build.xml files for gump integration.
Added: incubator/directory/naming/trunk/build.xml
==============================================================================
--- (empty file)
+++ incubator/directory/naming/trunk/build.xml Mon Feb 2 21:54:35 2004
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project default="jar" name="directory-naming" basedir=".">
+
+<!--
+ Top level build for directory-naming to support limited ant targetsfor gump integration.
+ Only clean, test and jar are supported. The jar target produces directory-naming-core and
+ directory-naming-factory jars in core/dist, factory/dist directories, with gump-style jar names.
+-->
+
+ <property name="DATE_STAMP" value="@@DATE@@"/>
+
+ <target name="clean" description="Clean up the generated directories">
+ <delete dir="${defaulttargetdir}"/>
+ <delete dir="${distdir}"/>
+ <ant dir="core" target="clean"/>
+ <ant dir="factory" target="clean"/>
+ </target>
+
+ <target name="test" description="Run the test cases" >
+ <ant dir="core" target="test"/>
+ <ant dir="factory" target="test"/>
+ </target>
+
+ <target name="jar" depends="clean" description="Create the jars">
+ <ant dir="core" target="jar"/>
+ <ant dir="factory" target="jar"/>
+ </target>
+
+</project>
\ No newline at end of file
Added: incubator/directory/naming/trunk/core/build.xml
==============================================================================
--- (empty file)
+++ incubator/directory/naming/trunk/core/build.xml Mon Feb 2 21:54:35 2004
@@ -0,0 +1,160 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ build.xml for directory-naming-core to support gump integration and ant
+ command line builds. This build script gets dependent jars from ibibilio,
+ unless build.sysclasspath is set to "only" (as gump will do).
+ No dist target is provided.
+-->
+
+<project default="jar" name="directory-naming-core" basedir=".">
+
+ <property name="defaulttargetdir" value="target"/>
+ <property name="libdir" value="target/lib"/>
+ <property name="classesdir" value="target/classes"/>
+ <property name="testclassesdir" value="target/test-classes"/>
+ <property name="testreportdir" value="target/test-reports"/>
+ <property name="distdir" value="dist"/>
+ <property name="javadocdir" value="dist/docs/api"/>
+ <property name="final.name" value="directory-naming-core-${DATE_STAMP}"/>
+
+ <target name="init" description="o Initializes some properties">
+ <mkdir dir="${libdir}">
+ </mkdir>
+ <condition property="noget">
+ <equals arg2="only" arg1="${build.sysclasspath}"/>
+ </condition>
+ </target>
+
+ <target name="compile" description="o Compile the code" depends="get-deps">
+ <mkdir dir="${classesdir}">
+ </mkdir>
+ <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
+ <src>
+ <pathelement location="src/java">
+ </pathelement>
+ </src>
+ <classpath>
+ <fileset dir="${libdir}">
+ <include name="*.jar">
+ </include>
+ </fileset>
+ </classpath>
+ </javac>
+ <copy todir="${classesdir}">
+ <fileset dir="src/java">
+ <include name="**/*.properties">
+ </include>
+ </fileset>
+ </copy>
+ <copy todir="${testclassesdir}">
+ <fileset dir="src/test">
+ <include name="**/*.xml">
+ </include>
+ <include name="**/*.properties">
+ </include>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="jar" description="o Create the jar" depends="compile,test">
+ <mkdir dir="${distdir}"/>
+ <jar jarfile="${distdir}/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}">
+ </jar>
+ </target>
+
+ <target name="clean" description="o Clean up the generated directories">
+ <delete dir="${defaulttargetdir}">
+ </delete>
+ <delete dir="${distdir}">
+ </delete>
+ </target>
+
+ <target name="test" description="o Run the test cases" if="test.failure" depends="internal-test">
+ <fail message="There were test failures.">
+ </fail>
+ </target>
+ <target name="internal-test" depends="compile-tests">
+ <mkdir dir="${testreportdir}">
+ </mkdir>
+ <junit dir="./" failureproperty="test.failure" printSummary="yes" fork="true" haltonerror="true">
+ <sysproperty key="basedir" value=".">
+ </sysproperty>
+ <formatter type="xml">
+ </formatter>
+ <formatter usefile="false" type="plain">
+ </formatter>
+ <classpath>
+ <fileset dir="${libdir}">
+ <include name="*.jar">
+ </include>
+ </fileset>
+ <pathelement path="${testclassesdir}">
+ </pathelement>
+ <pathelement path="${classesdir}">
+ </pathelement>
+ </classpath>
+ <batchtest todir="${testreportdir}">
+ <fileset dir="src/test">
+ <include name="**/*Test*">
+ </include>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+ <target name="compile-tests" depends="compile">
+ <mkdir dir="${testclassesdir}">
+ </mkdir>
+ <javac destdir="${testclassesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
+ <src>
+ <pathelement location="src/test">
+ </pathelement>
+ </src>
+ <classpath>
+ <fileset dir="${libdir}">
+ <include name="*.jar">
+ </include>
+ </fileset>
+ <pathelement path="${classesdir}">
+ </pathelement>
+ </classpath>
+ </javac>
+ </target>
+
+ <target name="javadoc" description="o Generate javadoc" depends="jar">
+ <mkdir dir="${javadocdir}">
+ </mkdir>
+ <tstamp>
+ <format pattern="2003-yyyy" property="year">
+ </format>
+ </tstamp>
+ <property name="copyright" value="Copyright &copy; Apache Software Foundation. All Rights Reserved.">
+ </property>
+ <property name="title" value="Core SNAPSHOT API">
+ </property>
+ <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/java" packagenames="org.apache.naming.*">
+ <classpath>
+ <fileset dir="${libdir}">
+ <include name="*.jar">
+ </include>
+ </fileset>
+ <pathelement location="target/${final.name}.jar">
+ </pathelement>
+ </classpath>
+ </javadoc>
+ </target>
+
+ <target name="get-deps" unless="noget" depends="init">
+ <get dest="${libdir}/commons-collections-2.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-collections/jars/commons-collections-2.1.jar">
+ </get>
+ <get dest="${libdir}/mx4j-jmx-1.1.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/mx4j/jars/mx4j-jmx-1.1.1.jar">
+ </get>
+ <get dest="${libdir}/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar">
+ </get>
+ <get dest="${libdir}/ant-1.5.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/ant/jars/ant-1.5.jar">
+ </get>
+ <get dest="${libdir}/ant-optional-1.5.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/ant/jars/ant-optional-1.5.jar">
+ </get>
+ </target>
+
+</project>
\ No newline at end of file
Added: incubator/directory/naming/trunk/factory/build.xml
==============================================================================
--- (empty file)
+++ incubator/directory/naming/trunk/factory/build.xml Mon Feb 2 21:54:35 2004
@@ -0,0 +1,187 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ build.xml for directory-naming-factory to support gump integration and ant
+ command line builds. This build script gets dependent jars from ibibilio, with the
+ exception of javamail and jta jars, which it tries to load from the local maven
+ repository, located at ${localrepo}. If build.sysclasspath is set to "only", dependent
+ jars are expected to be available via the system classpath.
+ No dist target is provided.
+-->
+
+<project default="jar" name="directory-naming-factory" basedir=".">
+ <property name="defaulttargetdir" value="target"/>
+ <property name="libdir" value="target/lib"/>
+ <property name="classesdir" value="target/classes"/>
+ <property name="testclassesdir" value="target/test-classes"/>
+ <property name="testreportdir" value="target/test-reports"/>
+ <property name="distdir" value="dist"/>
+ <property name="javadocdir" value="dist/docs/api"/>
+ <property name="coredir" value="../core"/>
+ <property name="coreclassesdir" value="../core/target/classes"/>
+ <property name="localrepo" value="${user.home}/.maven/repository"/>
+ <property name="final.name" value="directory-naming-factory-${DATE_STAMP}"/>
+
+ <target name="init" description="Initializes some properties">
+ <mkdir dir="${libdir}"/>
+ <condition property="noget">
+ <equals arg2="only" arg1="${build.sysclasspath}">
+ </equals>
+ </condition>
+ </target>
+
+ <target name="compile" description="o Compile the code" depends="get-deps">
+ <mkdir dir="${classesdir}">
+ </mkdir>
+ <javac destdir="${classesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
+ <src>
+ <pathelement location="src/java">
+ </pathelement>
+ </src>
+ <classpath>
+ <fileset dir="${libdir}">
+ <include name="*.jar">
+ </include>
+ </fileset>
+ <pathelement path="${coreclassesdir}">
+ </pathelement>
+ </classpath>
+ </javac>
+ <copy todir="${classesdir}">
+ <fileset dir="src/java">
+ <include name="**/*.properties">
+ </include>
+ </fileset>
+ </copy>
+ <copy todir="${classesdir}">
+ <fileset dir="src/conf">
+ <include name="**/*.dtd">
+ </include>
+ </fileset>
+ </copy>
+ <copy todir="${testclassesdir}">
+ <fileset dir="src/test">
+ <include name="**/*.xml">
+ </include>
+ <include name="**/*.properties">
+ </include>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="jar" description="o Create the jar" depends="compile,test">
+ <mkdir dir="${distdir}"/>
+ <jar jarfile="${distdir}/${final.name}.jar" excludes="**/package.html" basedir="${classesdir}"/>
+ </target>
+
+ <target name="clean" description="o Clean up the generated directories">
+ <delete dir="${defaulttargetdir}">
+ </delete>
+ <delete dir="${distdir}">
+ </delete>
+ </target>
+
+ <target name="test" description="o Run the test cases" if="test.failure" depends="internal-test">
+ <fail message="There were test failures.">
+ </fail>
+ </target>
+ <target name="internal-test" depends="compile-tests">
+ <mkdir dir="${testreportdir}">
+ </mkdir>
+ <junit dir="./" failureproperty="test.failure" printSummary="yes" fork="true" haltonerror="true">
+ <sysproperty key="basedir" value=".">
+ </sysproperty>
+ <formatter type="xml">
+ </formatter>
+ <formatter usefile="false" type="plain">
+ </formatter>
+ <classpath>
+ <fileset dir="${libdir}">
+ <include name="*.jar">
+ </include>
+ </fileset>
+ <pathelement path="${testclassesdir}">
+ </pathelement>
+ <pathelement path="${classesdir}">
+ </pathelement>
+ <pathelement path="${coreclassesdir}">
+ </pathelement>
+ </classpath>
+ <batchtest todir="${testreportdir}">
+ <fileset dir="src/test">
+ <include name="**/*Test*">
+ </include>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
+ <target name="compile-tests" depends="compile">
+ <mkdir dir="${testclassesdir}">
+ </mkdir>
+ <javac destdir="${testclassesdir}" deprecation="true" debug="true" optimize="false" excludes="**/package.html">
+ <src>
+ <pathelement location="src/test">
+ </pathelement>
+ </src>
+ <classpath>
+ <fileset dir="${libdir}">
+ <include name="*.jar">
+ </include>
+ </fileset>
+ <pathelement path="${classesdir}">
+ </pathelement>
+ <pathelement path="${coreclassesdir}">
+ </pathelement>
+ </classpath>
+ </javac>
+ </target>
+
+ <target name="javadoc" description="o Generate javadoc" depends="jar">
+ <mkdir dir="${javadocdir}">
+ </mkdir>
+ <tstamp>
+ <format pattern="2003-yyyy" property="year">
+ </format>
+ </tstamp>
+ <property name="copyright" value="Copyright &copy; Apache Software Foundation. All Rights Reserved.">
+ </property>
+ <property name="title" value="Naming Factories SNAPSHOT API">
+ </property>
+ <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/java" packagenames="org.apache.naming.*">
+ <classpath>
+ <fileset dir="${libdir}">
+ <include name="*.jar">
+ </include>
+ </fileset>
+ <pathelement location="target/${final.name}.jar">
+ </pathelement>
+ </classpath>
+ </javadoc>
+ </target>
+
+ <target name="get-deps" unless="noget" depends="init">
+
+ <copy todir="${libdir}">
+ <fileset dir="${localrepo}/jta-spec/jars">
+ <include name="jta-spec-1.0.1.jar"/>
+ </fileset>
+ <fileset dir="${localrepo}/javamail/jars/">
+ <include name="javamail-1.2.jar"/>
+ </fileset>
+ </copy>
+
+ <get dest="${libdir}/commons-logging-1.0.3.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.3.jar"/>
+ <get dest="${libdir}/commons-lang-1.0.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-lang/jars/commons-lang-1.0.1.jar"/>
+ <get dest="${libdir}/commons-digester-1.4.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-digester/jars/commons-digester-1.4.1.jar"/>
+ <get dest="${libdir}/commons-beanutils-1.6.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-beanutils/jars/commons-beanutils-1.6.1.jar"/>
+ <get dest="${libdir}/commons-dbcp-1.0.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-dbcp/jars/commons-dbcp-1.0.jar"/>
+ <get dest="${libdir}/commons-pool-1.0.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-pool/jars/commons-pool-1.0.1.jar"/>
+ <get dest="${libdir}/hsqldb-1.7.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/hsqldb/jars/hsqldb-1.7.1.jar"/>
+ <get dest="${libdir}/commons-collections-2.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/commons-collections/jars/commons-collections-2.1.jar"/>
+ <get dest="${libdir}/mx4j-jmx-1.1.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/mx4j/jars/mx4j-jmx-1.1.1.jar"/>
+ <get dest="${libdir}/junit-3.8.1.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar"/>
+ <get dest="${libdir}/ant-1.5.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/ant/jars/ant-1.5.jar"/>
+ <get dest="${libdir}/ant-optional-1.5.jar" usetimestamp="true" ignoreerrors="true" src="http://www.ibiblio.org/maven/ant/jars/ant-optional-1.5.jar"/>
+ </target>
+</project>
\ No newline at end of file
Modified: incubator/directory/naming/trunk/xdocs/building.xml
==============================================================================
--- incubator/directory/naming/trunk/xdocs/building.xml (original)
+++ incubator/directory/naming/trunk/xdocs/building.xml Mon Feb 2 21:54:35 2004
@@ -36,7 +36,6 @@
<li>jta-spec 1.0.1 (runtime only, must be added to local repo,
since not available on ibiblio)</li>
<li>javamail 1.2 (must be added to local repo, since not available on ibiblio)</li>
- <li>tyrex 1.0 </li>
<li>commons-dbcp 1.0 and commons-pool 1.0.1 (only required if using the default
resource factory to obtain database connections)</li>
<li>commons-digester 1.4.1 (for reading XML configuration files)</li>