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/tylar DefaultTylarLoader.java
Date Fri, 28 May 2004 17:36:18 GMT
pcal        2004/05/28 10:36:18

  Modified:    v2/src/binding/org/apache/xmlbeans/impl/binding/tylar
                        DefaultTylarLoader.java
  Log:
  tylar loading tweak
  
  Revision  Changes    Path
  1.18      +5 -1      xml-xmlbeans/v2/src/binding/org/apache/xmlbeans/impl/binding/tylar/DefaultTylarLoader.java
  
  Index: DefaultTylarLoader.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/src/binding/org/apache/xmlbeans/impl/binding/tylar/DefaultTylarLoader.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- DefaultTylarLoader.java	28 May 2004 17:02:52 -0000	1.17
  +++ DefaultTylarLoader.java	28 May 2004 17:36:18 -0000	1.18
  @@ -118,7 +118,11 @@
     {
       if (uri == null) throw new IllegalArgumentException("null uri");
       String scheme = uri.getScheme();
  -    if (scheme.equals(FILE_SCHEME)) {
  +    //yuck even more hackery.  ripping this all out soon
  +    if (scheme.equals("jar")) {
  +      return load(new URL[]{ new URL(uri.toString()) });
  +     
  +    } else if (scheme.equals(FILE_SCHEME)) {
         File file = null;
         try {
           file = new File(uri);
  
  
  

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