/** * Does the work. * * @exception BuildException if something goes wrong with the build */ public void execute() throws BuildException { try { ResourceUtils.copyResource( new StringResource(message.isEmpty() ? System.lineSeparator() : message), output == null ? new LogOutputResource(this, logLevel) : output, null, null, false, false, append, null, encoding.isEmpty() ? null : encoding, getProject(), force); } catch (IOException ioe) { throw new BuildException(ioe, getLocation()); } }