User: vharcq Date: 01/06/23 04:27:11 Modified: src/examples/build build.xml env.bat Log: Complete Chapter 4 examples Revision Changes Path 1.2 +52 -4 manual/src/examples/build/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/jboss/manual/src/examples/build/build.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- build.xml 2001/06/22 21:53:18 1.1 +++ build.xml 2001/06/23 11:27:11 1.2 @@ -15,7 +15,8 @@ <property name="jboss.dist" value="${jboss.home}"/> <property name="src.dir" value="${basedir}"/> - <property name="build.dir" value="${basedir}/../../build-examples"/> + <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"/> @@ -52,10 +53,33 @@ <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="Using jboss.dist=${jboss.dist}" /> + <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}" + /> + <tar tarfile="${dist.dir}/documentation-example.tar" basedir="${src.dir}"/> + <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> + <!-- *************************************************************************** --> @@ -69,13 +93,37 @@ </ant> </target> - <target name="cmp-cd-test1" depends="init"> - <ant antfile="org/jboss/docs/cmp/cd/build/build-cmp-cd-compile.xml" target="main"> + <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="classpath" value="${classpath}"/> + <property name="src.dir" value="${build.dir}"/> + <property name="build.dir" value="${build.dir}"/> + <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="classpath" value="${classpath}"/> <property name="src.dir" value="${build.dir}"/> <property name="build.dir" value="${build.dir}"/> + <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="classpath" value="${classpath}"/> + <property name="src.dir" value="${build.dir}"/> + <property name="build.dir" value="${build.dir}"/> + <property name="client" value="Remove"/> + </ant> + </target> + <!-- Add a new target here --> 1.2 +2 -2 manual/src/examples/build/env.bat Index: env.bat =================================================================== RCS file: /cvsroot/jboss/manual/src/examples/build/env.bat,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- env.bat 2001/06/22 21:53:18 1.1 +++ env.bat 2001/06/23 11:27:11 1.2 @@ -1,3 +1,3 @@ set JAVA_HOME=c:\jdk1.3 -set JBOSS_HOME=C:\Projects\jbosscvs\jboss\dist -set ANT_HOME=C:\Projects\jbosscvs\jboss +set JBOSS_HOME=C:\Projects\jbosscvs22\jboss\dist +set ANT_HOME=C:\Projects\jbosscvs22\jboss _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development