Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
import the good exception class
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 21 Sep 2007 15:33:34 +0000 (15:33 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 21 Sep 2007 15:33:34 +0000 (15:33 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4653 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/java/simgrid/msg/DTDResolver.java

index 1726880..7d0d58f 100644 (file)
@@ -14,6 +14,7 @@
 package simgrid.msg;\r
 \r
 import java.io.InputStream;\r
 package simgrid.msg;\r
 \r
 import java.io.InputStream;\r
+import java.io.FileNotFoundException;\r
 import org.xml.sax.EntityResolver;\r
 import org.xml.sax.InputSource;\r
 import org.xml.sax.SAXException;\r
 import org.xml.sax.EntityResolver;\r
 import org.xml.sax.InputSource;\r
 import org.xml.sax.SAXException;\r
@@ -32,9 +33,6 @@ public class DTDResolver implements EntityResolver {
        /* try to get the DTD from the classpath */\r
        InputStream in = getClass().getResourceAsStream("/surfxml.dtd"); \r
        \r
        /* try to get the DTD from the classpath */\r
        InputStream in = getClass().getResourceAsStream("/surfxml.dtd"); \r
        \r
-       if(null == in)  \r
-               /* try to get the DTD from the surf dir in the jar */\r
-               in = getClass().getResourceAsStream("/surf/surfxml.dtd"); \r
        if(null == in)  \r
                /* try to get the DTD from the directory Simgrid */\r
                in = getClass().getResourceAsStream("/Simgrid/surfxml.dtd"); \r
        if(null == in)  \r
                /* try to get the DTD from the directory Simgrid */\r
                in = getClass().getResourceAsStream("/Simgrid/surfxml.dtd"); \r