You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by na...@locus.apache.org on 2000/05/19 23:32:10 UTC

cvs commit: jakarta-tomcat/src/doc/appdev/sample build.bat build.xml

nacho       00/05/19 14:32:10

  Modified:    src/doc/appdev/sample build.bat build.xml
  Log:
  Fixed some typos and changed to match actual incarnation of ant
  
  Revision  Changes    Path
  1.3       +8 -2      jakarta-tomcat/src/doc/appdev/sample/build.bat
  
  Index: build.bat
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/doc/appdev/sample/build.bat,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build.bat	2000/04/24 19:36:48	1.2
  +++ build.bat	2000/05/19 21:32:09	1.3
  @@ -1,7 +1,8 @@
   @echo off
   rem build.bat -- Build Script for the "Hello, World" Application
  -rem $Id: build.bat,v 1.2 2000/04/24 19:36:48 craigmcc Exp $
  +rem $Id: build.bat,v 1.3 2000/05/19 21:32:09 nacho Exp $
   
  +if "%TOMCAT_HOME%" == "" goto notomcathome
   if "%CLASSPATH%" == "" goto noclasspath
   
   :haveclasspath
  @@ -18,10 +19,15 @@
   set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jasper.jar
   set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\servlet.jar
   set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\webserver.jar
  -set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\xml.jar
   
   rem Execute ANT to perform the requested build target
   java org.apache.tools.ant.Main -Dtomcat.home=%TOMCAT_HOME% %1 %2 %3 %4 %5 %6 %7 %8 %9
   
   set CLASSPATH=%_CLASSPATH%
   set _CLASSPATH=
  +goto end
  +:notomcathome
  +echo 
  +echo you need to set TOMCAT_HOME to build this app
  +echo
  +:end
  \ No newline at end of file
  
  
  
  1.5       +8 -8      jakarta-tomcat/src/doc/appdev/sample/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/doc/appdev/sample/build.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- build.xml	2000/05/02 20:34:47	1.4
  +++ build.xml	2000/05/19 21:32:09	1.5
  @@ -18,7 +18,7 @@
     <property name="javadoc.home"   value="${deploy.home}/javadoc"/>
   
   
  -  <target name="prepare" init="init">
  +  <target name="prepare">
       <mkdir dir="${deploy.home}"/>
       <copydir src="web" dest="${deploy.home}"/>
       <mkdir dir="${deploy.home}/WEB-INF"/>
  @@ -30,31 +30,31 @@
     </target>
   
   
  -  <target name="clean" init="init">
  +  <target name="clean">
       <deltree dir="${deploy.home}"/>
     </target>
   
   
  -  <target name="compile" depends="prepare" init="init">
  +  <target name="compile" depends="prepare">
       <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes"
              classpath="${deploy.home}/WEB-INF/classes"
              debug="on" optimize="off" deprecation="off"/>
     </target>
   
   
  -  <target name="javadoc" depends="prepare" init="init">
  +  <target name="javadoc" depends="prepare">
       <!-- TODO -->
     </target>
   
   
  -  <target name="all" depends="clean,prepare,compile,javadoc" init="init"/>
  +  <target name="all" depends="clean,prepare,compile,javadoc"/>
   
   
  -  <target name="dist" depends="prepare,compile" init="init">
  +  <target name="dist" depends="prepare,compile">
       <jar jarfile="${dist.home}/${dist.src}"
  -         basedir="." items="*"/>
  +         basedir="." includes="*"/>
       <jar jarfile="${dist.home}/${dist.war}"
  -         basedir="${deploy.home}" items="*"/>
  +         basedir="${deploy.home}" includes="*"/>
     </target>