tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Seasund...@aol.com
Subject build.xml file not supporting documented items?
Date Wed, 09 May 2001 03:09:05 GMT
TIA!
 
Please provide error free version of enclosed build.xml file represented on pg 722-723 in
Prof. JSP (enclosed). 
Or provide information as to what is not supported
or so many given syntax features for build.xml
don't working.  This makes "ant" more of a hassle
than a help.  Make was better @ least proven & 
at this stage of maturiy - bug free ( for the 
most part).
 
I'd also like any additional gotchas awaiting as I
try to get "ant" & book examples working from the
wrox downloaded zip.
 
Attempting to build the examples from Pro. JSP book.
 
Build.xml from pgs 722-723  is giving a  host of errors:
------------------------------------------------------------------------------
--------
"copydir is depracated - use copy instead"
 
init attribute not functioning".  On lines including 
init=init with the "target name" lines. had to remove
 init portion.  Not sure what that hampers or helps.
 
"Class org.apache.tools.ant.taskdefs.copy doesnt support src attribute at line #14 (of the
file)
 
*************************************************************************
 
Here is the file as I've transcibed from book ( including the debug fixes already needing
to be 
added as noted above).
**************************************************************************
C:\jakarta-tomcat-3.2.1\webapps>type build.xml
<project name="ProJSP" default="compile" basedir=".">
 
 <target name="init">
   <property name="build.compiler" value="classic"/>
   <property name="deploy.home"    value="${tomcat.home}/webapps/projsp"/>
   <property name="dist.home"    value="${deploy.home}"/>
   <property name="dist.src"       value="${projsp.jar"/>
   <property name="dist.war"       value="${projsp.war"/>
   <property name="javadoc.home"   value="${deploy.home}/javadoc"/>
 </target>
 
<target name="prepare">
 <mkdir dir="${deploy.home}"/>
 <copy src="web" dest="${deploy.home}"/>   <-- line 14 is failing here

 <mkdir dir="${deploy.home}/WEB-INF"/>
 <copyfile src="etc/web.xml" dest="${deploy.home}/WEB-INF/web.xml"/>
 <mkdir dir="${deploy.home}/WEB-INF/classes"/>
 <mkdir dir="${deploy.home}/WEB-INF/lib"/>
 <copy src="lib" dest="${deploy.home}/WEB-INF/lib"/>
 <mkdir dir="${javadoc.home}"/>
</target>
 
<target name="clean">
 <deltree dir="${deploy.home}"/>
</target>
 
<target name="compile" depends="prepare, init">
  <javac srcdir="src" distdir="${deploy.home}/WEB-INF/classes"
     classpath="${deploy.home}/WEB-INF/classes"
     debug="on" optimize="off" deprecation="off"/>
</target>
 
<target name="javadoc" depends="prepare, init">
</target>
 

<target name="all" depends="clean, prepare, compile, javadoc, init"/>
 

<target name="dist" depends="prepare, compile">
  <jar jarfile="${dist.home}/${dist.src}"
    basedir="." includes="**"/>
  <jar jarfile="${dist.home}/${dist.war}"
    basedir="${deploy.home}" includes="**"/>
</target>
 
</project>
*************************************************************************

Mime
View raw message