Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
import the good exception class
[simgrid.git] / 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
+import java.io.FileNotFoundException;\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
-       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