CVS Update: xmlpull-api-v1/src/java/tests/org/xmlpull/v1/tests

Stefan Haustein <[email protected]>
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>
haustein    02/09/08 16:03:18

  Modified:    src/java/tests/org/xmlpull/v1/tests XmlTestCase.java
  Log:
  commented out loading the xml files from the classpath root (seemed to general, was loading sample.xml from the kxml samples).
  
  Revision  Changes    Path
  1.5       +6 -5      xmlpull-api-v1/src/java/tests/org/xmlpull/v1/tests/XmlTestCase.java
  
  Index: XmlTestCase.java
  ===================================================================
  RCS file: /l/extreme/cvspub/xmlpull-api-v1/src/java/tests/org/xmlpull/v1/tests/XmlTestCase.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -t -w -r1.4 -r1.5
  --- XmlTestCase.java	2002/09/08 14:07:51	1.4
  +++ XmlTestCase.java	2002/09/08 21:03:17	1.5
  @@ -85,13 +85,13 @@
           InputStream is = null;
           if(is == null) {
               try {
  -                is = getClass().getResourceAsStream (name);
  +                is = getClass().getResourceAsStream (RESOURCE_PREFIX+name);
               } catch(Exception ex) {
               }
           }
  -        if(is == null) {
  +/*        if(is == null) {   // this seems to causes loading of simple.xml in the kxml samples dir
               try {
  -                is = getClass().getResourceAsStream (RESOURCE_PREFIX+name);
  +                is = getClass().getResourceAsStream (name);
               } catch(Exception ex) {
               }
           }
  @@ -99,14 +99,15 @@
               try {
                   is = getClass().getResourceAsStream ("/"+name);
               } catch(Exception ex) {
  -            }
           }
  +        }  */
           if(is == null) {
               try {
                   is = new FileInputStream(name);
               } catch(Exception ex) {
               }
           }
  + 
   
           if (is == null) {
               throw new IOException("could not open XML test for '"+name+"'");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.