Update of /var/cvs/src/org/mmbase/datatypes In directory james.mmbase.org:/tmp/cvs-serv11589
Modified Files: DataTypes.java Log Message: lowered some log See also: http://cvs.mmbase.org/viewcvs/src/org/mmbase/datatypes Index: DataTypes.java =================================================================== RCS file: /var/cvs/src/org/mmbase/datatypes/DataTypes.java,v retrieving revision 1.28 retrieving revision 1.29 diff -u -b -r1.28 -r1.29 --- DataTypes.java 12 Apr 2008 13:15:54 -0000 1.28 +++ DataTypes.java 14 Aug 2008 16:16:02 -0000 1.29 @@ -39,7 +39,7 @@ *</p> * @author Pierre van Rooden * @since MMBase-1.8 - * @version $Id: DataTypes.java,v 1.28 2008/04/12 13:15:54 michiel Exp $ + * @version $Id: DataTypes.java,v 1.29 2008/08/14 16:16:02 michiel Exp $ */ public class DataTypes { @@ -102,15 +102,17 @@ while (i.hasPrevious()) { try { URL u = i.previous(); - log.service("Reading " + u); URLConnection con = u.openConnection(); if (con.getDoInput()) { + log.service("Reading " + u); InputSource dataTypesSource = new InputSource(con.getInputStream()); dataTypesSource.setSystemId(u.toExternalForm()); DocumentBuilder db = DocumentReader.getDocumentBuilder(true, true, new XMLErrorHandler(), new XMLEntityResolver(true, DataTypeReader.class)); Document doc = db.parse(dataTypesSource); Element dataTypesElement = doc.getDocumentElement(); // fieldtypedefinitons or datatypes element failed.addAll(DataTypeReader.readDataTypes(dataTypesElement, dataTypeCollector)); + } else { + log.debug("Not reading, because not existing " + u); } } catch (Exception e) { log.error(e.getMessage(), e); _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs