tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnout Kuiper <ajkui...@planet.nl>
Subject [PATCH] Ant compatibility fix
Date Mon, 28 Feb 2000 11:47:43 GMT
Hi,

To stay compatible with Ant, the following fix should be done, because no 
tasks are allowed on the root level anymore. Can somebody with enough Karma 
do this for me?

Cheers,

   Arnout

Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-tomcat/build.xml,v
retrieving revision 1.35
diff -u -r1.35 build.xml
--- build.xml   2000/02/24 23:01:23     1.35
+++ build.xml   2000/02/28 11:35:15
@@ -1,13 +1,15 @@
  <project name="Tomcat" default="main" basedir=".">
-  <property name="ant.home" value="../jakarta-ant"/>
-  <property name="build.compiler" value="classic"/>
-  <property name="tomcat.build" value="../build/tomcat"/>
-  <property name="tomcat.home" value="../dist/tomcat"/>
+  <target name="init">
+    <property name="ant.home" value="../jakarta-ant"/>
+    <property name="build.compiler" value="classic"/>
+    <property name="tomcat.build" value="../build/tomcat"/>
+    <property name="tomcat.home" value="../dist/tomcat"/>
+  </target>

    <!-- ==================== Copy static files ==================== -->
    <!-- IF YOU CHANGE, sync dist.prepare !!! -->

-  <target name="prepare">
+  <target name="prepare" depends="init">
      <mkdir dir="src/doc"/> <!-- Temp change until dir is not empty -->
      <mkdir dir="${tomcat.build}"/>
      <mkdir dir="${tomcat.build}/classes"/>
@@ -158,7 +160,7 @@


    <!-- ==================== Admin ==================== -->
-  <target name="clean">
+  <target name="clean" depends="init">
      <deltree dir="${tomcat.build}"/>
      <deltree dir="${tomcat.home}"/>
    </target>



Mime
View raw message