Author: echatellier Date: 2011-02-28 10:28:10 +0100 (Mon, 28 Feb 2011) New Revision: 544 Url: http://nuiton.org/repositories/revision/jrst/544 Log: Replace sysout by log.debug Modified: trunk/jrst/src/main/java/org/nuiton/jrst/JRST.java Modified: trunk/jrst/src/main/java/org/nuiton/jrst/JRST.java =================================================================== --- trunk/jrst/src/main/java/org/nuiton/jrst/JRST.java 2011-02-28 09:18:03 UTC (rev 543) +++ trunk/jrst/src/main/java/org/nuiton/jrst/JRST.java 2011-02-28 09:28:10 UTC (rev 544) @@ -153,7 +153,7 @@ /** ODT output format type */ public static final String TYPE_ODT = "odt"; - + /** FO output format type */ public static final String TYPE_FO = "fo"; @@ -534,9 +534,13 @@ String smallSystemId = systemId.substring(systemId.lastIndexOf("/") + 1); URL url = Resource.getURL("/docbook/common/" + smallSystemId); - System.out.println("Url found = " + url); - InputStream stream = url.openStream(); - source = new InputSource(stream); + if (url != null) { + if (log.isDebugEnabled()) { + log.debug("Resolved entity url : " + url); + } + InputStream stream = url.openStream(); + source = new InputSource(stream); + } return source; }