/** * Turn on XSD support in Xerces. * @return true on success, false on failure */ public boolean enableXercesSchemaValidation() { try { setFeature(XmlConstants.FEATURE_XSD, true); //set the schema source for the doc setNoNamespaceSchemaProperty(XmlConstants.PROPERTY_NO_NAMESPACE_SCHEMA_LOCATION); } catch (BuildException e) { log(e.toString(), Project.MSG_VERBOSE); return false; } return true; }
/** * Set schema attributes in a JAXP 1.2 engine. * @see <A href="http://java.sun.com/xml/jaxp/change-requests-11.html"> * JAXP 1.2 Approved CHANGES</A> * @return true on success, false on failure */ public boolean enableJAXP12SchemaValidation() { try { //enable XSD setProperty(XmlConstants.FEATURE_JAXP12_SCHEMA_LANGUAGE, XmlConstants.URI_XSD); //set the schema source for the doc setNoNamespaceSchemaProperty(XmlConstants.FEATURE_JAXP12_SCHEMA_SOURCE); } catch (BuildException e) { log(e.toString(), Project.MSG_VERBOSE); return false; } return true; }
log(be.toString());
"Failed to invoke the raster2pgsql script. This is not a problem " + "unless you need to use the raster2pgsql script to automatically configure pgrasters.\n" + e.toString());
System.out.println(e.toString()); lastException = e;
System.out.println(e.toString()); lastException = e;
System.out.println(e.toString()); lastException = e;
/** * Executes the task. Compiles the given files. * * @param task * cc task * @param sources * source files (includes headers) * @param targets * compilation targets * @param linkTarget * link target */ public void execute(final CCTask task, final List<File> sources, final Map<String, TargetInfo> targets, final TargetInfo linkTarget) { try { this.projectWriter.writeProject(this.outFile, task, this, sources, targets, linkTarget); } catch (final BuildException ex) { if (this.failOnError) { throw ex; } else { task.log(ex.toString()); } } catch (final Exception ex) { if (this.failOnError) { throw new BuildException(ex); } else { task.log(ex.toString()); } } }