tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-servletapi-5/jsr152 build.xml
Date Tue, 27 Aug 2002 13:17:43 GMT
remm        2002/08/27 06:17:42

  Modified:    jsr152   build.xml
  Log:
  - Build the examples webapp.
  
  Revision  Changes    Path
  1.2       +38 -1     jakarta-servletapi-5/jsr152/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-servletapi-5/jsr152/build.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.xml	13 Aug 2002 16:20:54 -0000	1.1
  +++ build.xml	27 Aug 2002 13:17:42 -0000	1.2
  @@ -16,6 +16,10 @@
     <property name="jsp-api.dist"     value="dist"/>
     <property name="servlet-api.jar"  value="../jsr154/dist/lib/servlet-api.jar"/>
   
  +  <path id="examples.classpath">
  +    <pathelement location="${jsp-api.build}/classes"/>
  +    <pathelement location="${servlet-api.jar}"/>
  +  </path>
   
   
     <!-- ===================== Prepare Directories ========================= -->
  @@ -26,6 +30,7 @@
       <mkdir dir="${jsp-api.build}/classes"/>
       <mkdir dir="${jsp-api.build}/docs"/>
       <mkdir dir="${jsp-api.build}/docs/api"/>
  +    <mkdir dir="${jsp-api.build}/examples"/>
   
       <!-- "Dist" Hierarchy -->
       <mkdir dir="${jsp-api.dist}"/>
  @@ -33,6 +38,7 @@
       <mkdir dir="${jsp-api.dist}/docs/api"/>
       <mkdir dir="${jsp-api.dist}/lib"/>
       <mkdir dir="${jsp-api.dist}/src"/>
  +    <mkdir dir="${jsp-api.dist}/examples"/>
   
       <uptodate property="docs.uptodate" targetfile="${jsp-api.build}/docs/api/index.html">
         <srcfiles dir="src/share" includes="**/*.java" />
  @@ -98,8 +104,39 @@
     </target>
   
   
  +  <!-- ======================== Build JavaDoc =========================== -->
  +  <target name="examples" depends="prepare">
  +
  +    <copy todir="${jsp-api.build}/examples">
  +      <fileset dir="examples">
  +        <exclude name="build.*"/>
  +      </fileset>
  +    </copy>
  +
  +    <javac   srcdir="examples/WEB-INF/classes" 
  +             destdir="${jsp-api.build}/examples/WEB-INF/classes"
  +             debug="${compile.debug}" deprecation="${compile.deprecation}"
  +             optimize="${compile.optimize}"
  +             excludes="**/CVS/**">
  +      <classpath refid="examples.classpath" />
  +    </javac>
  +
  +    <javac   srcdir="examples/plugin/applet" 
  +             destdir="${jsp-api.build}/examples/plugin/applet"
  +             debug="${compile.debug}" deprecation="${compile.deprecation}"
  +             optimize="${compile.optimize}"
  +             excludes="**/CVS/**">
  +      <classpath refid="examples.classpath" />
  +    </javac>
  +
  +    <jar   jarfile="${jsp-api.dist}/examples/examples.war"
  +           basedir="${jsp-api.build}/examples" includes="**"/>
  +
  +  </target>
  +
  +
     <!-- ===================== Distribution Files ========================= -->
  -  <target name="dist" depends="compile,javadoc"
  +  <target name="dist" depends="compile,examples,javadoc"
      description="Create binary distribution">
   
       <!-- Copy Javadocs -->
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message