Author: akazakov
Date: 2009-08-21 11:04:44 -0400 (Fri, 21 Aug 2009)
New Revision: 17223
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/xml/DtdResolver.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4808
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/xml/DtdResolver.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/xml/DtdResolver.java 2009-08-21
14:47:54 UTC (rev 17222)
+++
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/xml/DtdResolver.java 2009-08-21
15:04:44 UTC (rev 17223)
@@ -50,7 +50,6 @@
String systemId2 = systemId.substring(i + 1);
location =
XMLCorePlugin.getDefault().getDefaultXMLCatalog().resolveURI(systemId2);
}
-
}
if((location == null || location.startsWith("http:")) &&
systemId != null) { //$NON-NLS-1$
Bundle b = Platform.getBundle("org.eclipse.jst.standard.schemas");
//$NON-NLS-1$
@@ -73,9 +72,9 @@
if(location == null) {
if(systemId != null && !unfound.contains(systemId)) {
unfound.add(systemId);
- CommonPlugin.getPluginLog().logError("Cannot find locally: "
//$NON-NLS-1$
- + "Public ID " + publicId //$NON-NLS-1$
- + " System ID " + systemId); //$NON-NLS-1$
+// CommonPlugin.getPluginLog().logInfo("Cannot find locally: "
//$NON-NLS-1$
+// + "Public ID " + publicId //$NON-NLS-1$
+// + " System ID " + systemId); //$NON-NLS-1$
}
}
if(location!=null) {
@@ -88,7 +87,7 @@
return url.openStream();
}
} catch(FileNotFoundException e) {
- CommonPlugin.getPluginLog().logError("Error in DtdResolver: " +
e.getMessage()); //$NON-NLS-1$
+ CommonPlugin.getPluginLog().logError(e);
}
}
@@ -110,11 +109,9 @@
is = HttpUtil.getInputStreamFromUrlByGetMethod(systemId);
}
} catch (MalformedURLException e) {
- CommonPlugin.getPluginLog().logError( e.getMessage());
- // don't handle any exeptions. Bug #ESL-306
+ CommonPlugin.getPluginLog().logError(e);
} catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ CommonPlugin.getPluginLog().logError(e);
}
}
return is;