xml-xmlbeans-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject cvs commit: xml-xmlbeans/v2/jam_old/src/org/apache/xmlbeans/impl/jam_old/internal/parser ParserClassBuilder.java
Date Fri, 19 Mar 2004 08:06:17 GMT
pcal        2004/03/19 00:06:17

  Modified:    v2/jam_old build.xml
               v2/jam_old/src/org/apache/xmlbeans/impl/jam_old/internal/parser
                        ParserClassBuilder.java
  Log:
  comment out parser for now
  
  Revision  Changes    Path
  1.4       +2 -0      xml-xmlbeans/v2/jam_old/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam_old/build.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- build.xml	15 Mar 2004 22:30:34 -0000	1.3
  +++ build.xml	19 Mar 2004 08:06:17 -0000	1.4
  @@ -26,6 +26,7 @@
       <delete dir='${gen_dir}'/>
       <mkdir dir='${gen_dir}'/>
   
  +<!-- skipping parser for now
       <antlr outputdirectory='${gen_dir}' target='${src_dir}/java.g'
              debug='false'>
          <classpath>
  @@ -34,6 +35,7 @@
            <pathelement path='${classes_dir}'/>
          </classpath>
       </antlr>
  +-->
     </target>
   
     <target name='compile' depends='parser'>
  
  
  
  1.2       +6 -5      xml-xmlbeans/v2/jam_old/src/org/apache/xmlbeans/impl/jam_old/internal/parser/ParserClassBuilder.java
  
  Index: ParserClassBuilder.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/jam_old/src/org/apache/xmlbeans/impl/jam_old/internal/parser/ParserClassBuilder.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ParserClassBuilder.java	11 Mar 2004 21:26:45 -0000	1.1
  +++ ParserClassBuilder.java	19 Mar 2004 08:06:17 -0000	1.2
  @@ -25,8 +25,8 @@
   import org.apache.xmlbeans.impl.jam_old.provider.EClassBuilder;
   import org.apache.xmlbeans.impl.jam_old.internal.BaseJClassLoader;
   import org.apache.xmlbeans.impl.jam_old.internal.JamPrinter;
  -import org.apache.xmlbeans.impl.jam_old.internal.parser.generated.JavaLexer;
  -import org.apache.xmlbeans.impl.jam_old.internal.parser.generated.JavaParser;
  +//import org.apache.xmlbeans.impl.jam_old.internal.parser.generated.JavaLexer;
  +//import org.apache.xmlbeans.impl.jam_old.internal.parser.generated.JavaParser;
   
   import java.io.*;
   import java.util.List;
  @@ -102,13 +102,14 @@
     // Private methods
   
     private static EClass[] parse(Reader in, JClassLoader loader) throws Exception {
  -    if (in == null) throw new IllegalArgumentException("null in");
  +    throw new IllegalStateException("parser disabled");
  +    /*if (in == null) throw new IllegalArgumentException("null in");
       if (loader == null) throw new IllegalArgumentException("null loader");
       JavaLexer lexer = new JavaLexer(in);
       JavaParser parser = new JavaParser(lexer);
       parser.setClassLoader(loader);
       parser.start();
  -    return parser.getResults();
  +    return parser.getResults();*/
     }
   
     // ========================================================================
  @@ -195,4 +196,4 @@
         mFailures.add(file);
       }
     }
  -}
  \ No newline at end of file
  +}
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-cvs-help@xml.apache.org


Mime
View raw message