tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Koontz (MapQuest)" <>
Subject BUILD FATAL ERROR: srcdir does not exist!
Date Fri, 21 Jul 2000 14:51:07 GMT
I'm using Tomcat 3.1 on NT
What's wrong?

Buildfile: build.xml
Project base dir set to: D:\tomcat\doc\appdev\sample
Executing Target: prepare
BUILD FATAL ERROR: srcdir does not exist!

Here's the projects build.xml
D:\tomcat\doc\appdev\sample>cat build.xml
<project name="Hello, World" default="compile" basedir=".">

<!-- Simple "Hello, World" project to provide a concrete example of
     the recommendations in the Application Developer's Guide.

     NOTE:  Before using this file as is, you should review the
     values for the properties that are defined below.
     In particular, it is assumed that you wish to install this
     application under context path "/myapp" in the Tomcat installation
     defined by your TOMCAT_HOME environment variable.

  <property name=""       value="myapp"/>
  <property name="deploy.home"
  <property name="dist.home"      value="${deploy.home}"/>
  <property name="dist.src"       value="${}.jar"/>
  <property name="dist.war"       value="${}.war"/>
  <property name="javadoc.home"   value="${deploy.home}/javadoc"/>

  <target name="prepare" init="init">
    <mkdir dir="${deploy.home}"/>
    <copydir src="web" dest="${deploy.home}"/>
    <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"/>
    <copydir src="lib" dest="${deploy.home}/lib"/>
    <mkdir dir="${javadoc.home}"/>

  <target name="clean" init="init">
    <deltree dir="${deploy.home}"/>

  <target name="compile" depends="prepare" init="init">
    <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes"
           debug="on" optimize="off" deprecation="off"/>

  <target name="javadoc" depends="prepare" init="init">
    <!-- TODO -->

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

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


David Koontz                 303 244 0305
Software Engineer - Enterprise Services

View raw message