gianugo     02/04/04 00:04:53

  Modified:    .        build.xml
  Log:
  Added a "webdav" target (as well as some utility targets). It creates
  a servlet container droppable "xindav.war" file in java/lib. Point your
  browser to http://yourhost/xindav/webdav/whatever to see how well the
  application does just nothing as of now :-)
  
  Revision  Changes    Path
  1.13      +47 -4     xml-xindice/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-xindice/build.xml,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- build.xml 22 Mar 2002 06:27:48 -0000      1.12
  +++ build.xml 4 Apr 2002 08:04:53 -0000       1.13
  @@ -14,7 +14,7 @@
        cd xml-xindice ; bin/ant
   
   
  -   $Id: build.xml,v 1.12 2002/03/22 06:27:48 kstaken Exp $
  +   $Id: build.xml,v 1.13 2002/04/04 08:04:53 gianugo Exp $
   
   -->
   
  @@ -28,8 +28,11 @@
     <property name="root.dir" value="./java"/>
     <property name="jar.dir" value="${root.dir}/lib"/>
     <property name="src.dir" value="${root.dir}/src"/>
  +  <property name="scratchpad.dir" value="${root.dir}/scratchpad"/>
     <property name="scratchpad.src.dir" value="${root.dir}/scratchpad/src"/>
  +  <property name="scratchpad.jar.dir" value="${root.dir}/scratchpad/lib"/>
     <property name="build.dir" value="${root.dir}/classes"/>
  +  <property name="webapp.dir" value="${root.dir}/webapp"/>
     
     <property name="examples.dir" value="${root.dir}/examples"/>
     <property name="examples.build.dir" value="${examples.dir}/classes"/>
  @@ -59,7 +62,15 @@
       <!-- system property, environment classpath -->
       <pathelement path="${java.class.path}"/>
     </path>
  -  
  +
  +  <!-- Scratchpad classpath -->
  +  <path id="scratchpad.class.path">
  +    <path refid="project.class.path"/>
  +    <fileset dir="${scratchpad.jar.dir}">
  +      <include name="*.jar"/>
  +    </fileset>
  +  </path> 
  +
     <target name="init">
       <tstamp/>
       <property name="name" value="xml-xindice"/>
  @@ -130,9 +141,14 @@
   
     <target name="scratchpad-src" depends="prepare, idl, src">
       <echo message="Compiling Scratchpad Source"/>
  +    <copy todir="${build.dir}">
  +      <fileset dir="${scratchpad.src.dir}">
  +        <include name="**/*.roles"/>
  +      </fileset>
  +    </copy>
       <javac srcdir="${scratchpad.src.dir}"
              destdir="${build.dir}"
  -           classpathref="project.class.path"
  +           classpathref="scratchpad.class.path"
              debug="${compile.debug}"
              optimize="${compile.optimize}"
              nowarn="${compile.nowarn}"
  @@ -141,6 +157,30 @@
              />
     </target>
   
  +  <target name="webdav" depends="scratchpad">
  +    <echo 
message="---------------------------------------------------------"/>
  +    <echo message="Warning! Webdav is not functional yet: this is just " />
  +    <echo message="a prototype. You have been warned."/>
  +    <echo 
message="---------------------------------------------------------"/>
  +
  +    <mkdir dir="${webapp.dir}/WEB-INF/lib" />
  +
  +    <copy todir="${webapp.dir}/WEB-INF/lib">
  +      <fileset dir="${scratchpad.jar.dir}">
  +        <include name="*.jar"/>
  +      </fileset>
  +      <fileset dir="${jar.dir}">
  +        <include name="*.jar"/>
  +      </fileset>
  +    </copy>
  +    <copy todir="${webapp.dir}/WEB-INF"> 
  +      <fileset dir="${scratchpad.dir}/webapp/WEB-INF"/>
  +    </copy>  
  +    <jar jarfile="${jar.dir}/xindav.war"
  +      basedir="${webapp.dir}" />
  +    
  +  </target>
  +
     <target name="bin-jar" depends="prepare">
       <jar jarfile="${jar.dir}/${jarname}.jar"
            basedir="${build.dir}"
  @@ -150,7 +190,7 @@
     <!-- =================================================================== 
-->
     <!-- Cleans everything                                                   
-->
     <!-- =================================================================== 
-->
  -  <target name="clean" depends="init, clean-jar, clean-classes, 
clean-javadoc, clean-idl">
  +  <target name="clean" depends="init, clean-jar, clean-classes, 
clean-javadoc, clean-idl, clean-webapp">
     </target>
   
     <target name="clean-jar">
  @@ -161,6 +201,9 @@
     </target>
     <target name="clean-javadoc">
       <delete dir="${api.dir}"/>
  +  </target>
  +  <target name="clean-webapp">
  +    <delete dir="${webapp.dir}"/>
     </target>
     <target name="clean-idl">
       <delete includeEmptyDirs="true">
  
  
  

Reply via email to