You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by ov...@apache.org on 2002/03/02 03:02:25 UTC

cvs commit: xml-cocoon2/src/scratchpad/schecoon build.xml

ovidiu      02/03/01 18:02:25

  Modified:    src/scratchpad/schecoon build.xml
  Log:
  Added support for building the ANTLR grammar.
  
  Revision  Changes    Path
  1.9       +25 -1     xml-cocoon2/src/scratchpad/schecoon/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/schecoon/build.xml,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- build.xml	16 Feb 2002 01:56:59 -0000	1.8
  +++ build.xml	2 Mar 2002 02:02:25 -0000	1.9
  @@ -13,6 +13,7 @@
       these are here only for those who use jikes compiler. For other
       developers this part makes no difference.
     -->
  +  <property name="build.sysclasspath" value="ignore"/>
     <property name="build.compiler.emacs" value="on"/>
     <property name="build.compiler.warnings" value="true"/>
     <property name="build.compiler.pedantic" value="false"/>
  @@ -90,6 +91,16 @@
         <pathelement location="${root.dir}/${build.root}/cocoon/classes"/>
       </path>
   
  +    <!-- This task should be obsoleted with the next version of Ant
  +    (1.5?). The current 1.4.1 Ant has a broken ANTLR task. The one
  +    included here is compiled from Ant's CVS as of March 1, 2002 -->
  +    <taskdef name="myantlr"
  +	     classname="org.apache.tools.ant.taskdefs.optional.MyANTLR">
  +      <classpath>
  +        <pathelement path="./lib/ant-antlr.jar"/>
  +      </classpath>
  +    </taskdef>
  +
     </target>
   
     <!-- Add filters for loading database information from
  @@ -106,9 +117,20 @@
     </target>
   
     <!-- =================================================================== -->
  +  <!-- Generate the parser/lexer/tree walker for jWeave                    -->
  +  <!-- =================================================================== -->
  +  <target name="antlr" depends="prepare">
  +    <!-- Use the new antlr task which allows specifying the classpath -->
  +    <myantlr target="${src.dir}/org/apache/cocoon/flow/flow.g"
  +	   outputdirectory="${src.dir}/org/apache/cocoon/flow">
  +      <classpath refid="classpath"/>
  +    </myantlr>
  +  </target>
  +
  +  <!-- =================================================================== -->
     <!-- Compiles the source directory                                       -->
     <!-- =================================================================== -->
  -  <target name="compile" depends="prepare"
  +  <target name="compile" depends="prepare, antlr"
             description="Compiles the source code">
       <copy todir="${build.dest}">
         <fileset dir="${src.dir}">
  @@ -282,6 +304,8 @@
       <delete>
         <fileset dir="${emacs.dir}" includes="sisc-servlet.bat"/>
         <fileset dir="${emacs.dir}" includes="sisc-servlet"/>
  +      <fileset dir="${src.dir}/org/apache/cocoon/flow"
  +	       includes="FlowLexer.java, FlowParser*.*"/>
       </delete>
     </target>
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org