xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject cvs commit: xml-xmlbeans/v2/src/binding/org/apache/xmlbeans/impl/binding/compile Java2Schema.java Schema2Java.java
Date Wed, 07 Apr 2004 06:01:53 GMT
pcal        2004/04/06 23:01:53

  Modified:    v2/src/binding/org/apache/xmlbeans/impl/binding/compile
                        Java2Schema.java Schema2Java.java
  Log:
  J2S: for now, catch any exception thrown when writing xsb
  S2J: fix build break (doh)
  
  Revision  Changes    Path
  1.47      +6 -1      xml-xmlbeans/v2/src/binding/org/apache/xmlbeans/impl/binding/compile/Java2Schema.java
  
  Index: Java2Schema.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/src/binding/org/apache/xmlbeans/impl/binding/compile/Java2Schema.java,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- Java2Schema.java	7 Apr 2004 04:18:09 -0000	1.46
  +++ Java2Schema.java	7 Apr 2004 06:01:53 -0000	1.47
  @@ -130,11 +130,16 @@
         SchemaTypeSystem sts = XmlBeans.compileXsd
           (new XmlObject[] {mSchemaDocument},XmlBeans.getBuiltinTypeSystem(),null);
         writer.writeSchemaTypeSystem(sts);
  -    } catch(XmlException xe) {
  +    } catch(Exception e) {
  +      System.out.println("[XBEANS] Java2Schema encoutnered a problem trying to write out
xsbs.  Ignoring for now: ");
  +      e.printStackTrace(System.out);
  +    }
  +/*    } catch(XmlException xe) {
         logError(xe);
       } catch(IOException ioe) {
         logError(ioe);
       }
  +*/
     }
   
     // ========================================================================
  
  
  
  1.22      +1 -1      xml-xmlbeans/v2/src/binding/org/apache/xmlbeans/impl/binding/compile/Schema2Java.java
  
  Index: Schema2Java.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/src/binding/org/apache/xmlbeans/impl/binding/compile/Schema2Java.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- Schema2Java.java	7 Apr 2004 04:18:09 -0000	1.21
  +++ Schema2Java.java	7 Apr 2004 06:01:53 -0000	1.22
  @@ -55,7 +55,7 @@
     // Variables
   
     private Set usedNames = new HashSet();
  -  private SchemaTypeLoader sts = null;
  +  private SchemaTypeSystem sts = null;
     private Map scratchFromXmlName = new LinkedHashMap();
     private Map scratchFromSchemaType = new HashMap(); // for convenience
     private Map scratchFromJavaNameString = new HashMap(); // for printing
  
  
  

---------------------------------------------------------------------
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