User: vharcq
Date: 01/09/05 14:58:01
Modified: src/examples/build build.xml
Log:
Bug 458826, 457149
Chapter JDBC examples did not work.
Revision Changes Path
1.14 +267 -261 manual/src/examples/build/build.xml
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/manual/src/examples/build/build.xml,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- build.xml 2001/08/15 17:25:08 1.13
+++ build.xml 2001/09/05 21:58:01 1.14
@@ -1,261 +1,267 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!--
- Ant build file for the documentation tutorial code
- Writer of a chapter with an example have to include a foroward
- to their build file. This latest build file suppose arguments
- sets here :
- src.dir : Directory where the source are : manual\src\examples
- build.dir : Base directory where to store generated files
(class/ejb/war/...)
- classpath : Classpath used to make any compilation (set up here by
verifing
- which version of JBoss is used.
-
- -->
-
-<project name="CMP" default="main" basedir="../">
-
- <property name="env" environment="env" />
- <!-- Override with your JBoss server dist location if the JBOSS_DIST env var is
not set -->
- <property name="jboss.dist" value="${env.JBOSS_DIST}"/>
- <!-- Override with your web server servlet jar location. The default assumes
that
- JBOSS_DIST points to a JBoss/Tomcat bundle distribution
- -->
- <property name="servlet.jar"
value="${env.JBOSS_DIST}}/../tomcat/lib/servlet.jar"/>
- <property name="src.dir" value="${basedir}"/>
- <property name="src.resources" value="${basedir}/resources"/>
- <property name="build.dir" value="${basedir}/build-examples"/>
- <property name="dist.dir" value="${basedir}/../../dist-examples"/>
-
- <path id="base.path_22">
- <pathelement location="${jboss.dist}/client/ejb.jar"/>
- <pathelement location="${jboss.dist}/client/jaas.jar"/>
- <pathelement location="${jboss.dist}/client/jbosssx-client.jar"/>
- <pathelement location="${jboss.dist}/client/jboss-client.jar"/>
- <pathelement location="${jboss.dist}/client/jnp-client.jar"/>
- <pathelement location="${servlet.jar}"/>
- </path>
- <path id="base.path_23">
- <pathelement location="${jboss.dist}/client/jboss-j2ee.jar"/>
- <pathelement location="${jboss.dist}/client/jaas.jar"/>
- <pathelement location="${jboss.dist}/client/jbosssx-client.jar"/>
- <pathelement location="${jboss.dist}/client/jboss-client.jar"/>
- <pathelement location="${jboss.dist}/client/jnp-client.jar"/>
- <pathelement location="${servlet.jar}"/>
- </path>
-
- <target name="validate">
- <available property="classpath_id" value="base.path_22"
file="${jboss.dist}/client/ejb.jar" />
- <available property="classpath_id" value="base.path_23"
file="${jboss.dist}/client/jboss-j2ee.jar" />
- </target>
-
- <target name="fail_if_not_valid" unless="classpath_id">
- <fail message="jboss.dist=${jboss.dist} is not a valid JBoss dist
directory"/>
- </target>
-
- <target name="init" depends="validate,fail_if_not_valid">
- <property name="classpath" refid="${classpath_id}" />
- <echo message="Using JBoss directory=${jboss.dist}" />
- <echo message="Using base classpath=${classpath}" />
- <echo message="Using Source directory=${src.dir}" />
- <echo message="Using Build directory=${build.dir}" />
- </target>
-
- <!-- Clean build and dist -->
- <target name="clean" depends="init">
- <delete dir="${build.dir}"/>
- <delete dir="${dist.dir}"/>
- </target>
-
- <!-- No default Target -->
- <target name="main" depends="init">
- <echo message="Specify which target you want to run. Example: build
cmp-cd-list" />
- </target>
-
- <!-- Target to create files to store on the Web site -->
-
- <target name="dist" depends="clean">
- <mkdir dir="${dist.dir}"/>
- <!-- Bundle all the sources and build script in one file -->
- <zip zipfile="${dist.dir}/documentation-example.zip" basedir="${src.dir}/../"
- includes="examples/**" />
- <tar tarfile="${dist.dir}/documentation-example.tar" basedir="${src.dir}/../"
- includes="examples/**" />
- <gzip src="${dist.dir}/documentation-example.tar"
zipfile="${dist.dir}/documentation-example.tar.gz" />
- <!-- Add Chapter specific files here
- <antcall target="cmp-cd-dist" />
- -->
- </target>
-
- <!--
*************************************************************************** -->
- <!-- Chapter 1 - First Steps -->
- <target name="intro-interest-compile" depends="init">
- <ant antfile="org/jboss/docs/interest/build.xml" target="compile" />
- </target>
-
- <target name="intro-interest-jar" depends="init">
- <ant antfile="org/jboss/docs/interest/build.xml" target="ejb-jar" />
- </target>
-
- <target name="intro-interest-ear" depends="init">
- <ant antfile="org/jboss/docs/interest/build.xml" target="ear" />
- </target>
-
- <target name="intro-interest-deploy" depends="init">
- <ant antfile="org/jboss/docs/interest/build.xml" target="deploy-ejb-jar" />
- </target>
-
- <target name="intro-interest-client" depends="init">
- <ant antfile="org/jboss/docs/interest/build.xml" target="interest-client" />
- </target>
-
-
- <!--
*************************************************************************** -->
- <!-- Chapter 4 - CMP -->
-
- <target name="cmp-cd-compile" depends="init">
- <ant antfile="org/jboss/docs/cmp/cd/build/build-cmp-cd-compile.xml"
target="main" />
- </target>
-
- <target name="cmp-cd-dist" depends="cmp-cd-compile">
- <!-- Nothing special here -->
- </target>
-
- <target name="cmp-cd-list" depends="init">
- <ant antfile="org/jboss/docs/cmp/cd/build/build-client.xml" target="main" />
- </target>
-
- <target name="cmp-cd-upload" depends="init">
- <ant antfile="org/jboss/docs/cmp/cd/build/build-client.xml" target="main" />
- </target>
-
- <target name="cmp-cd-remove" depends="init">
- <ant antfile="org/jboss/docs/cmp/cd/build/build-client.xml" target="main" />
- </target>
-
- <!--
*************************************************************************** -->
- <!-- Chapter 5 - JAWS -->
-
- <target name="cmp-jaws-compile" depends="init">
- <ant antfile="org/jboss/docs/cmp/jaws/build/build-cmp-jaws-compile.xml"
target="main" />
- </target>
-
-
- <!--
*************************************************************************** -->
- <!-- Chapter 7 - JMS -->
-
- <target name="jms-compile" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="compile" />
- </target>
-
- <target name="jms-build" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="build" />
- </target>
-
- <target name="jms-hello-publisher" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-publisher" />
- </target>
-
- <target name="jms-hello-subscriber" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-subscriber" />
- </target>
-
- <target name="jms-hello-publisher25" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-publisher25"
/>
- </target>
-
- <target name="jms-hello-subscriber25" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-subscriber25"
/>
- </target>
-
- <target name="jms-hello-sender" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-sender" />
- </target>
-
- <target name="jms-hello-receiver" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-receiver" />
- </target>
-
- <target name="jms-hello-sender25" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-sender25" />
- </target>
-
- <target name="jms-hello-receiver25" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-receiver25" />
- </target>
-
- <target name="jms-manual-jndi" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-manual-jndi" />
- </target>
-
- <target name="jms-create-dest" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-create-dest" />
- </target>
-
- <target name="jms-destroy-dest" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-destroy-dest" />
- </target>
-
-
- <target name="jms-create-dest25" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-create-dest25" />
- </target>
-
- <target name="jms-destroy-dest25" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-destroy-dest25" />
- </target>
-
- <target name="jms-hello-topic" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-topic" />
- </target>
-
- <target name="jms-hello-topic-durable" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml"
target="jms-hello-topic-durable" />
- </target>
-
- <target name="jms-hello-topic-fullconf" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml"
target="jms-hello-topic-fullconf" />
- </target>
- <target name="jms-hello-queue" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-queue" />
- </target>
-
- <target name="jms-hello-queue-bmt" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-queue-bmt" />
- </target>
-
- <target name="jms-hello-listener" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-listener" />
- </target>
-
- <target name="jms-topic-hello24" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-topic-hello24" />
- </target>
- <target name="jms-topic-hello22" depends="init">
- <ant antfile="org/jboss/docs/jms/build.xml" target="jms-topic-hello22" />
- </target>
-
- <!-- ***************************************************************************
-->
- <!-- Chapter JavaMail -->
-
- <target name="howto-javamail-compile" depends="init">
- <ant antfile="org/jboss/docs/javamail/build.xml" target="compile" />
- </target>
-
- <target name="howto-javamail-jar" depends="init">
- <ant antfile="org/jboss/docs/javamail/build.xml" target="ejb-jar" />
- </target>
-
- <target name="howto-javamail-deploy" depends="init">
- <ant antfile="org/jboss/docs/javamail/build.xml" target="deploy-ejb-jar" />
- </target>
-
- <target name="howto-javamail-deploy-ear" depends="init">
- <ant antfile="org/jboss/docs/javamail/build.xml" target="deploy-ear" />
- </target>
-
- <target name="howto-javamail-client" depends="init">
- <ant antfile="org/jboss/docs/javamail/build.xml" target="javamail-client" />
- </target>
-
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ Ant build file for the documentation tutorial code
+ Writer of a chapter with an example have to include a foroward
+ to their build file. This latest build file suppose arguments
+ sets here :
+ src.dir : Directory where the source are : manual\src\examples
+ build.dir : Base directory where to store generated files
(class/ejb/war/...)
+ classpath : Classpath used to make any compilation (set up here by
verifing
+ which version of JBoss is used.
+
+ -->
+
+<project name="CMP" default="main" basedir="../">
+
+ <property environment="env" />
+ <!-- Override with your JBoss server dist location if the JBOSS_DIST env var is
not set -->
+ <property name="jboss.dist" value="${env.JBOSS_DIST}"/>
+ <!-- Override with your web server servlet jar location. The default assumes
that
+ JBOSS_DIST points to a JBoss/Tomcat bundle distribution
+ -->
+ <property name="servlet.jar"
value="${env.JBOSS_DIST}}/../tomcat/lib/servlet.jar"/>
+ <property name="src.dir" value="${basedir}"/>
+ <property name="src.resources" value="${basedir}/resources"/>
+ <property name="build.dir" value="${basedir}/build-examples"/>
+ <property name="dist.dir" value="${basedir}/../../dist-examples"/>
+
+ <path id="base.path_22">
+ <pathelement location="${jboss.dist}/client/ejb.jar"/>
+ <pathelement location="${jboss.dist}/client/jaas.jar"/>
+ <pathelement location="${jboss.dist}/client/jbosssx-client.jar"/>
+ <pathelement location="${jboss.dist}/client/jboss-client.jar"/>
+ <pathelement location="${jboss.dist}/client/jnp-client.jar"/>
+ <pathelement location="${servlet.jar}"/>
+ </path>
+ <path id="base.path_23">
+ <pathelement location="${jboss.dist}/client/jboss-j2ee.jar"/>
+ <pathelement location="${jboss.dist}/client/jaas.jar"/>
+ <pathelement location="${jboss.dist}/client/jbosssx-client.jar"/>
+ <pathelement location="${jboss.dist}/client/jboss-client.jar"/>
+ <pathelement location="${jboss.dist}/client/jnp-client.jar"/>
+ <pathelement location="${servlet.jar}"/>
+ </path>
+
+ <target name="validate">
+ <available property="classpath_id" value="base.path_22"
file="${jboss.dist}/client/ejb.jar" />
+ <available property="classpath_id" value="base.path_23"
file="${jboss.dist}/client/jboss-j2ee.jar" />
+ </target>
+
+ <target name="fail_if_not_valid" unless="classpath_id">
+ <fail message="jboss.dist=${jboss.dist} is not a valid JBoss dist
directory"/>
+ </target>
+
+ <target name="init" depends="validate,fail_if_not_valid">
+ <property name="classpath" refid="${classpath_id}" />
+ <echo message="Using JBoss directory=${jboss.dist}" />
+ <echo message="Using base classpath=${classpath}" />
+ <echo message="Using Source directory=${src.dir}" />
+ <echo message="Using Build directory=${build.dir}" />
+ </target>
+
+ <!-- Clean build and dist -->
+ <target name="clean" depends="init">
+ <delete dir="${build.dir}"/>
+ <delete dir="${dist.dir}"/>
+ </target>
+
+ <!-- No default Target -->
+ <target name="main" depends="init">
+ <echo message="Specify which target you want to run. Example: build
cmp-cd-list" />
+ </target>
+
+ <!-- Target to create files to store on the Web site -->
+
+ <target name="dist" depends="clean">
+ <mkdir dir="${dist.dir}"/>
+ <!-- Bundle all the sources and build script in one file -->
+ <zip zipfile="${dist.dir}/documentation-example.zip" basedir="${src.dir}/../"
+ includes="examples/**" />
+ <tar tarfile="${dist.dir}/documentation-example.tar" basedir="${src.dir}/../"
+ includes="examples/**" />
+ <gzip src="${dist.dir}/documentation-example.tar"
zipfile="${dist.dir}/documentation-example.tar.gz" />
+ <!-- Add Chapter specific files here
+ <antcall target="cmp-cd-dist" />
+ -->
+ </target>
+
+ <!--
*************************************************************************** -->
+ <!-- Chapter 1 - First Steps -->
+ <target name="intro-interest-compile" depends="init">
+ <ant antfile="org/jboss/docs/interest/build.xml" target="compile" />
+ </target>
+
+ <target name="intro-interest-jar" depends="init">
+ <ant antfile="org/jboss/docs/interest/build.xml" target="ejb-jar" />
+ </target>
+
+ <target name="intro-interest-ear" depends="init">
+ <ant antfile="org/jboss/docs/interest/build.xml" target="ear" />
+ </target>
+
+ <target name="intro-interest-deploy" depends="init">
+ <ant antfile="org/jboss/docs/interest/build.xml" target="deploy-ejb-jar" />
+ </target>
+
+ <target name="intro-interest-client" depends="init">
+ <ant antfile="org/jboss/docs/interest/build.xml" target="interest-client" />
+ </target>
+
+
+ <!--
*************************************************************************** -->
+ <!-- Chapter 4 - CMP -->
+
+ <target name="cmp-cd-compile" depends="init">
+ <ant antfile="org/jboss/docs/cmp/cd/build/build-cmp-cd-compile.xml"
target="main" />
+ </target>
+
+ <target name="cmp-cd-dist" depends="cmp-cd-compile">
+ <!-- Nothing special here -->
+ </target>
+
+ <target name="cmp-cd-list" depends="init">
+ <ant antfile="org/jboss/docs/cmp/cd/build/build-client.xml" target="main">
+ <property name="client" value="List"/>
+ </ant>
+ </target>
+
+ <target name="cmp-cd-upload" depends="init">
+ <ant antfile="org/jboss/docs/cmp/cd/build/build-client.xml" target="main">
+ <property name="client" value="Upload"/>
+ </ant>
+ </target>
+
+ <target name="cmp-cd-remove" depends="init">
+ <ant antfile="org/jboss/docs/cmp/cd/build/build-client.xml" target="main">
+ <property name="client" value="Remove"/>
+ </ant>
+ </target>
+
+ <!--
*************************************************************************** -->
+ <!-- Chapter 5 - JAWS -->
+
+ <target name="cmp-jaws-compile" depends="init">
+ <ant antfile="org/jboss/docs/cmp/jaws/build/build-cmp-jaws-compile.xml"
target="main" />
+ </target>
+
+
+ <!--
*************************************************************************** -->
+ <!-- Chapter 7 - JMS -->
+
+ <target name="jms-compile" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="compile" />
+ </target>
+
+ <target name="jms-build" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="build" />
+ </target>
+
+ <target name="jms-hello-publisher" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-publisher" />
+ </target>
+
+ <target name="jms-hello-subscriber" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-subscriber" />
+ </target>
+
+ <target name="jms-hello-publisher25" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-publisher25"
/>
+ </target>
+
+ <target name="jms-hello-subscriber25" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-subscriber25"
/>
+ </target>
+
+ <target name="jms-hello-sender" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-sender" />
+ </target>
+
+ <target name="jms-hello-receiver" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-receiver" />
+ </target>
+
+ <target name="jms-hello-sender25" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-sender25" />
+ </target>
+
+ <target name="jms-hello-receiver25" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-receiver25" />
+ </target>
+
+ <target name="jms-manual-jndi" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-manual-jndi" />
+ </target>
+
+ <target name="jms-create-dest" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-create-dest" />
+ </target>
+
+ <target name="jms-destroy-dest" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-destroy-dest" />
+ </target>
+
+
+ <target name="jms-create-dest25" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-create-dest25" />
+ </target>
+
+ <target name="jms-destroy-dest25" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-destroy-dest25" />
+ </target>
+
+ <target name="jms-hello-topic" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-topic" />
+ </target>
+
+ <target name="jms-hello-topic-durable" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml"
target="jms-hello-topic-durable" />
+ </target>
+
+ <target name="jms-hello-topic-fullconf" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml"
target="jms-hello-topic-fullconf" />
+ </target>
+ <target name="jms-hello-queue" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-queue" />
+ </target>
+
+ <target name="jms-hello-queue-bmt" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-queue-bmt" />
+ </target>
+
+ <target name="jms-hello-listener" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-hello-listener" />
+ </target>
+
+ <target name="jms-topic-hello24" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-topic-hello24" />
+ </target>
+ <target name="jms-topic-hello22" depends="init">
+ <ant antfile="org/jboss/docs/jms/build.xml" target="jms-topic-hello22" />
+ </target>
+
+ <!-- ***************************************************************************
-->
+ <!-- Chapter JavaMail -->
+
+ <target name="howto-javamail-compile" depends="init">
+ <ant antfile="org/jboss/docs/javamail/build.xml" target="compile" />
+ </target>
+
+ <target name="howto-javamail-jar" depends="init">
+ <ant antfile="org/jboss/docs/javamail/build.xml" target="ejb-jar" />
+ </target>
+
+ <target name="howto-javamail-deploy" depends="init">
+ <ant antfile="org/jboss/docs/javamail/build.xml" target="deploy-ejb-jar" />
+ </target>
+
+ <target name="howto-javamail-deploy-ear" depends="init">
+ <ant antfile="org/jboss/docs/javamail/build.xml" target="deploy-ear" />
+ </target>
+
+ <target name="howto-javamail-client" depends="init">
+ <ant antfile="org/jboss/docs/javamail/build.xml" target="javamail-client" />
+ </target>
+
<!-- Chapter Applet Client -->
<target name="howto-appletclient-compile" depends="init">
@@ -274,6 +280,6 @@
<ant antfile="org/jboss/docs/appletclient/build.xml"
target="appletclient-client" />
</target>
- <!-- Add a new target here -->
-
-</project>
+ <!-- Add a new target here -->
+
+</project>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development