*/
protected void chmodScripts() throws BuildException {
if (System.getProperty("os.name").toLowerCase().indexOf("win") < 0) {
File dir = null;
FileSet fs = null;
Chmod aChmod = null;
try {
dir = taskDir();
super.log("chmod scripts in " + dir, Project.MSG_VERBOSE);
fs = new FileSet();
fs.setDir(dir);
fs.createInclude().setName("**/" + name);
if (startupScriptName != null) {
fs.createInclude().setName("**/" + startupScriptName);
}
fs.createInclude().setName("**/*.sh");
aChmod = this.getSubtaskFactory().getChmod();
aChmod.setPerm(this.getChmod());
aChmod.addFileset(fs);
aChmod.execute();
}
finally {
dir = null;
fs = null;
aChmod = null;