/** * Set the command. * This is not allowed for Chmod. * @param cmdl ignored. * @throws BuildException always. * @ant.attribute ignore="true" */ @Override public void setCommand(Commandline cmdl) { throw new BuildException(getTaskType() + " doesn\'t support the command attribute", getLocation()); }
/** * Set the executable. * This is not allowed for Chmod. * @param e ignored. * @throws BuildException always. * @ant.attribute ignore="true" */ @Override public void setExecutable(String e) { throw new BuildException(getTaskType() + " doesn\'t support the executable attribute", getLocation()); }
/** * This is not allowed for Chmod. * @param skip ignored. * @throws BuildException always. * @ant.attribute ignore="true" */ @Override public void setSkipEmptyFilesets(boolean skip) { throw new BuildException(getTaskType() + " doesn\'t support the skipemptyfileset attribute", getLocation()); }
/** * This is not allowed for Chmod. * @param b ignored. * @throws BuildException always. * @ant.attribute ignore="true" */ @Override public void setAddsourcefile(boolean b) { throw new BuildException(getTaskType() + " doesn\'t support the addsourcefile attribute", getLocation()); }
/** * Check the attributes and nested elements. */ @Override protected void checkConfiguration() { if (!havePerm) { throw new BuildException("Required attribute perm not set in chmod", getLocation()); } if (defaultSetDefined && defaultSet.getDir(getProject()) != null) { addFileset(defaultSet); } super.checkConfiguration(); }
runExecute(execute); } catch (IOException e) { throw new BuildException("Execute failed: " + e, e, getLocation()); } finally {