commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: jakarta-commons/latka/src/webapps/latka-webapp README.txt build.xml
Date Mon, 22 Apr 2002 15:51:43 GMT
dion        02/04/22 08:51:43

  Added:       latka/src/webapps/latka-webapp README.txt build.xml
  Log:
  Moved from top level into src
  
  Revision  Changes    Path
  1.1                  jakarta-commons/latka/src/webapps/latka-webapp/README.txt
  
  Index: README.txt
  ===================================================================
  This will hopefully become a webapp-based interface to Latka.  It will serve as a more flexible
alternative to the command-line interface.
  
  In time, this code will be checked into the Latka project in the Commons Proper.  It's currently
in the sandbox because it will probably rely on some experimental taglibs in the Taglibs sandbox.
 Taglibs committers may also work on this webapp's development.
  
  
  1.1                  jakarta-commons/latka/src/webapps/latka-webapp/build.xml
  
  Index: build.xml
  ===================================================================
  <!-- $Id: build.xml,v 1.1 2002/04/22 15:51:43 dion Exp $ -->
  <project name="commons-latka" default="test" basedir=".">
  
     <!-- patternset describing files to be copied from the doc directory -->
     <patternset id="patternset-doc"/>
  
     <!-- patternset describing non test source files (*.java, *html, etc.) -->
     <patternset id="patternset-javadocable-sources">
        <include name="**/*"/>
        <exclude name="**/Test*.java"/>
     </patternset>
  
     <!-- ######################################################### -->
  
     <target name="init">
        <tstamp/>
  
        <!-- read properties from the build.properties, if any -->
        <property name="latka-propfile" value="${basedir}/../build.properties"/>
        <property file="${latka-propfile}"/>
  
        <!-- read properties from the commons build.properties, if any -->
        <property name="commons-propfile" value="${basedir}/../../build.properties"/>
        <property file="${commons-propfile}"/>
  
        <!-- read properties from the ${user.home}/propfile, if any -->
        <property name="user-propfile" value="${user.home}/build.properties"/>
        <property file="${user-propfile}"/>
  
        <!-- command line classpath, if any -->
        <property name="cp" value=""/>
  
        <!-- now combine the classpaths -->
        <property name="classpath" value="${cp}:${servlet.jar}:${latka.jar}:${log4j.jar}"/>
        
        <property name="name" value="commons-latka-webapp"/>
        <property name="Name" value="Commons-Latka-Webapp"/>
        <property name="Name-Long" value="Jakarta Commons Latka Web Application"/>
        
        <property name="workdir" value="${java.io.tmpdir}/buildtemp_${DSTAMP}${TSTAMP}"/>
        <property name="source" value="${basedir}"/>
        <property name="source.webapp" value="${basedir}/webapp"/>
        <property name="source.src" value="${basedir}/src"/>
        <property name="source.doc" value="${basedir}/doc"/>
        <property name="dest" value="${basedir}/dist"/>
        <property name="dest.webapp" value="${dest}/webapp"/>
        <property name="dest.webapp.webinf" value="${dest}/webapp/WEB-INF"/>
        <property name="dest.webapp.lib" value="${dest.webapp.webinf}/lib"/>
        <property name="dest.classes" value="${dest.webapp.webinf}/classes"/>
        <property name="dest.doc" value="${dest}/docs"/>
        <property name="dest.doc.api" value="${dest.doc}/api"/>
        <property name="dest.webappdir" value="${dest}"/>
        <property name="dest.webappdir.war" value="${dest.webappdir}/latka-webapp.war"/>
        <property name="resource" value="${basedir}/resource"/>
  
        <available property="available-doc" file="${source.doc}"/> <!-- does this
module have docs? -->
        <available property="available-src-java" file="${source.src}"/> <!-- does
this module have java src? -->      
  
     </target>
  
     <!-- ######################################################### -->
  
     <target name="copy-javadoc-source" depends="init" if="available-src-java">
        <mkdir dir="${javadoc-source-dir}"/>
        <copy todir="${javadoc-source-dir}" filtering="no">
           <fileset dir="${source.src.java}">
              <patternset refid="patternset-javadocable-sources"/>
           </fileset>
        </copy>
     </target>
  
     <target name="copy-doc" depends="init" if="available-doc">
        <mkdir dir="${doc-source-dir}/${name}"/>
        <copy todir="${doc-source-dir}/${name}" filtering="no">
           <fileset dir="${source.doc}">
              <patternset refid="patternset-doc"/>
           </fileset>
        </copy>
     </target>
  
     <!-- ######################################################### -->
  
     <target name="clean" depends="init" description="removes generated files">
        <delete dir="${dest}"/>
     </target>
  
     <target name="clean-doc" depends="init,clean-javadoc">
        <delete dir="${dest.doc}"/>
     </target>
  
     <target name="clean-javadoc" depends="init">
        <delete dir="${dest.doc.api}"/>
     </target>
  
     <target name="clean-build" depends="init">
        <delete dir="${dest.classes}"/>
     </target>
  
     <target name="clean-dist" depends="init">
        <delete file="${dest.jardir.jar}"/>
     </target>
  
     <!-- ######################################################### -->
  
     <target name="doc" depends="init,doc-copy,doc-javadoc" description="generates javadocs
and other documentation">
     </target>
  
     <target name="doc-copy" depends="init" if="available-doc">
        <mkdir dir="${dest.doc}"/>
        <copy todir="${dest.doc}">
        <fileset dir="${source.doc}">
           <patternset refid="patternset-doc"/>
        </fileset>
        </copy>
     </target>
  
     <target name="doc-javadoc" depends="init" if="available-src-java">
        <!-- copy all the non-test sources out to the work directory and javadoc that -->
        <mkdir dir="${workdir}"/>
        <copy todir="${workdir}">
          <fileset dir="${source.src}">
            <patternset refid="patternset-javadocable-sources"/>
          </fileset>
        </copy>
        <mkdir dir="${dest.doc.api}"/>
        <javadoc packagenames="org.*"
                 sourcepath="${workdir}"
                 classpath="${classpath}"
                 destdir="${dest.doc.api}"
                 windowtitle="${Name-Long}"
                 doctitle="${Name-Long}"
                 bottom="&lt;small&gt;Copyright &amp;copy; 2001 Apache Software
Foundation. Documenation generated ${TODAY}&lt;/small&gt;."
                 public="true"
                 version="true"
                 author="true"
                 splitindex="false"
                 nodeprecated="true"
                 nodeprecatedlist="true"
                 notree="true"
                 noindex="false"
                 nohelp="true"
                 nonavbar="false"
                 serialwarn="false">
        </javadoc>
        <delete dir="${workdir}"/>
     </target>
  
     <!-- ######################################################### -->
  
     <target name="build" depends="init,build-webapp,build-java, build-lib" description="compiles
source files"/>
  
     <target name="build-webapp" depends="init">
        <mkdir dir="${dest.webapp}"/>
        <copy todir="${dest.webapp}">
           <fileset dir="${source.webapp}"/>
        </copy>
     </target>
  
     <target name="build-java" depends="build-webapp" if="available-src-java">
        <mkdir dir="${dest.classes}"/>
        <javac destdir="${dest.classes}"
               srcdir="${source.src}"
               classpath="${classpath}"
               debug="false"
               deprecation="true"
               optimize="true"/>
     </target>
  
     <target name="build-lib" depends="build-webapp">
        <mkdir dir="${dest.webapp.lib}"/>
        <copy todir="${dest.webapp.lib}" file="${latka.jar}"/>
        <copy todir="${dest.webapp.lib}" file="${log4j.jar}"/>
        <copy todir="${dest.webapp.lib}" file="${jaxp.jar}"/>
        <copy todir="${dest.webapp.lib}" file="${jdom.jar}"/>
        <copy todir="${dest.webapp.lib}" file="${regexp.jar}"/>
        <copy todir="${dest.webapp.lib}" file="${httpclient.jar}"/>
        <copy todir="${dest.webapp.lib}" file="${latka-taglib.jar}"/>
        <copy todir="${dest.webapp.lib}" file="${xalan.jar}"/>
        <copy todir="${dest.webapp.lib}" file="${crimson.jar}"/>
        <copy todir="${dest.webapp.webinf}" file="${latka-taglib.tld}"/>
     </target>
  
     <!-- ######################################################### -->
  
     <target name="dist" depends="dist-webapp,doc" description="builds binary distribution"/>
  
     <target name="dist-webapp" depends="build">
        <mkdir dir="${dest.webappdir}"/>
        <jar jarfile="${dest.webappdir.war}">
           <fileset dir="${dest.webapp}"/>
        </jar>
     </target>
  
     <!-- ######################################################### -->
  
  </project>
  
  

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


Mime
View raw message