You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by gl...@apache.org on 2001/01/06 20:08:31 UTC

cvs commit: jakarta-taglibs/sql build.xml

glenn       01/01/06 11:08:31

  Modified:    sql      build.xml
  Log:
  Replace deprecated ant tags
  
  Revision  Changes    Path
  1.4       +19 -24    jakarta-taglibs/sql/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/sql/build.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- build.xml	2000/12/08 02:50:07	1.3
  +++ build.xml	2001/01/06 19:08:31	1.4
  @@ -1,5 +1,5 @@
   <!-- ANT Build Script for the "sql" Custom Tag Library -->
  -<!-- $Id: build.xml,v 1.3 2000/12/08 02:50:07 horwat Exp $ -->
  +<!-- $Id: build.xml,v 1.4 2001/01/06 19:08:31 glenn Exp $ -->
   <project name="jspspec" default="main" basedir=".">
   
       <!-- ******************** Adjustable Properties *********************** -->
  @@ -25,6 +25,7 @@
       -->
   
       <property name="taglib.name"    value="sql"/>
  +    <property name="servlet.jar"    value="../../jakarta-servletapi/lib/servlet.jar"/>
   
       <!-- ****************** Project Standard Properties ******************* -->
   
  @@ -126,32 +127,26 @@
           <include name="**/*.html"/>
         </fileset>
       </copy>
  -   <!--
  -    <copydir src="${doc.src}/web"       dest="${build.doc}"/>
  -    <javac srcdir="${doc.src}/src"   destdir="${build.doc}/WEB-INF/classes"
  -           classpath="${servlet.jar}" debug="on"/>
  -     -->
     </target>
   
     <!-- Compile the examples application -->
     <target name="examples" depends="library-dist">
  -    <copydir src="${examples.src}/conf" dest="${build.examples}/WEB-INF"/>
  -    <copydir src="${examples.src}/web"  dest="${build.examples}"/>
  -    <copyfile src="${dist.tld}"
  -              dest="${build.examples}/WEB-INF/${taglib.name}.tld"/>
  -    <copyfile src="${dist.library}"
  -              dest="${build.examples}/WEB-INF/lib/${taglib.name}.jar"/>
  -   <!--
  -    <javac srcdir="${examples.src}/src"
  -           destdir="${build.examples}/WEB-INF/classes"
  -           classpath="${servlet.jar}" debug="on"/>
  -     -->
  +    <copy todir="${build.examples}/WEB-INF">
  +      <fileset dir="${examples.src}/conf"/>
  +    </copy>
  +    <copy todir="${build.examples}">
  +      <fileset dir="${examples.src}/web"/>
  +    </copy>
  +    <copy file="${dist.tld}"
  +              tofile="${build.examples}/WEB-INF/${taglib.name}.tld"/>
  +    <copy file="${dist.library}"
  +              tofile="${build.examples}/WEB-INF/lib/${taglib.name}.jar"/>
     </target>
   
     <!-- Compile the tag library itself -->
     <target name="library" depends="prepare">
  -    <copyfile src="${conf.src}/taglib.tld"
  -              dest="${build.library}/META-INF/taglib.tld"/>
  +    <copy file="${conf.src}/taglib.tld"
  +              tofile="${build.library}/META-INF/taglib.tld"/>
       <javac srcdir="${library.src}" destdir="${build.library}"
              classpath="${servlet.jar}" debug="on"/>
     </target>
  @@ -175,7 +170,7 @@
     <!-- Create the library distribution files -->
     <target name="library-dist" depends="library">
       <jar jarfile="${dist.library}" basedir="${build.library}"/>
  -    <copyfile src="${conf.src}/taglib.tld" dest="${dist.tld}"/>
  +    <copy file="${conf.src}/taglib.tld" tofile="${dist.tld}"/>
     </target>
   
     <!-- Create the entire set of distribution files -->
  @@ -187,10 +182,10 @@
   
     <!-- Delete output directories and files so we can build from scratch -->
     <target name="clean">
  -    <deltree dir="${build.doc}"/>
  -    <deltree dir="${build.examples}"/>
  -    <deltree dir="${build.library}"/>
  -    <deltree dir="${dist.dir}/${taglib.name}"/>
  +    <delete dir="${build.doc}"/>
  +    <delete dir="${build.examples}"/>
  +    <delete dir="${build.library}"/>
  +    <delete dir="${dist.dir}/${taglib.name}"/>
     </target>
   
   </project>