public void setConfiguration(File configurationFile) throws BuildException { try { ConfigurationParser parser = new ConfigurationParser(configurationFile); try { parser.parse(configuration); } catch (ParseException ex) { throw new BuildException(ex.getMessage()); } finally { parser.close(); } } catch (IOException ex) { throw new BuildException(ex.getMessage()); } }
throw new BuildException(e.getMessage(), e);
throw new BuildException(ex.getMessage());
public void addText(String text) throws BuildException { try { String arg = getProject().replaceProperties(text); ConfigurationParser parser = new ConfigurationParser(new String[] { arg }, getProject().getBaseDir()); try { parser.parse(configuration); } catch (ParseException ex) { throw new BuildException(ex.getMessage()); } finally { parser.close(); } } catch (IOException ex) { throw new BuildException(ex.getMessage()); } }
throw new IOException(ex.getMessage());
throw new BuildException(ex.getMessage());