26,7 → 26,6 |
import net.brutex.xservices.types.ReturnCode; |
import net.brutex.xservices.util.RunTask; |
import org.apache.tools.ant.taskdefs.Basename; |
import org.apache.tools.ant.taskdefs.Chmod; |
import org.apache.tools.ant.taskdefs.Copy; |
import org.apache.tools.ant.taskdefs.Echo; |
import org.apache.tools.ant.taskdefs.LoadResource; |
94,12 → 93,6 |
return chgrp(res, group); |
} |
|
@WebMethod(operationName = "changeMode") |
public ReturnCode changeMode(@WebParam(name="fileset") FileSetResource res, |
@WebParam(name="permissions") String perm) { |
return chmod(res, perm); |
} |
|
@WebMethod(exclude = true) |
private ReturnCode basename(File file, |
String suffix) { |
171,7 → 164,6 |
chown.setOwner(owner); |
FileSet set = src.getAntFileSet(chown.getProject()); |
chown.add(set); |
chown.setMaxParallel(300); |
return runner.postTask(); |
} |
|
183,21 → 175,6 |
chgrp.setGroup(group); |
FileSet set = src.getAntFileSet(chgrp.getProject()); |
chgrp.add(set); |
chgrp.setMaxParallel(300); |
return runner.postTask(); |
} |
|
@WebMethod(exclude = true) |
private ReturnCode chmod(FileSetResource src, String perm) { |
Chmod chmod = new Chmod(); |
chmod.setTaskName("Chmod"); |
RunTask runner = new RunTask(chmod); |
FileSet set = src.getAntFileSet(chmod.getProject()); |
chmod.add(set); |
chmod.setMaxParallel(300); |
chmod.setPerm(perm); |
chmod.setVerbose(true); |
return runner.postTask(); |
} |
|
} |