santiagopg    2002/12/20 11:47:27

  Modified:    java/xpath_rwapi Tag: xslt20 build.xml
  Added:       java/xpath_rwapi/src/org/apache/xpath/rwapi/test Tag: xslt20
                        Test2.java
  Log:
  Added a very simple class to test Lionel's AST. An XPath 2.0 expression E
  can be parsed as follows:
  
   ant test -Dtest.expr="E"
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +16 -3     xml-xalan/java/xpath_rwapi/Attic/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/xpath_rwapi/Attic/build.xml,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- build.xml 13 Dec 2002 21:50:39 -0000      1.1.2.1
  +++ build.xml 20 Dec 2002 19:47:27 -0000      1.1.2.2
  @@ -39,10 +39,16 @@
   
     <property name="spec" value="xpath"/>
     <property name="tree.xsl" value="grammar/etree.xsl"/>
  +  <property name="test.expr" value="a/b/c"/>
     
  -     <path id="classpath">
  -             <fileset dir="bin" includes="*.jar"/>
  -     </path>
  +  <path id="classpath">
  +    <fileset dir="bin" includes="*.jar"/>
  +  </path>
  +
  +  <path id="test.classpath">
  +    <fileset dir="build" includes="*.jar"/>
  +    <fileset dir="../bin" includes="*.jar"/>
  +  </path>
   
     <target name="gen-grammar">
         <mkdir dir="${spec}-src"/>
  @@ -89,5 +95,12 @@
     <target name="jar" depends="compile">
                <jar destfile="build/xpathapi.jar" basedir="build/classes" 
includes="**/*.*"/>
        </target>
  +
  +  <target name="test" depends="jar">
  +    <java fork="yes" classname="org.apache.xpath.rwapi.test.Test2" >
  +      <classpath refid="test.classpath" />
  +      <arg line="${test.expr}"/>
  +    </java>
  +  </target>
   
   </project>
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +106 -0    
xml-xalan/java/xpath_rwapi/src/org/apache/xpath/rwapi/test/Attic/Test2.java
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to