@@ -1569,7 +1585,17 @@ public final class FilePath implements Serializable {
try{
LIBC.chmod(f.getPath(),mode);
}catch(NoClassDefFoundErrore){
// be defensive. see http://www.nabble.com/-3.0.6--Site-copy-problem%3A-hudson.util.IOException2%3A--java.lang.NoClassDefFoundError%3A-Could-not-initialize-class--hudson.util.jna.GNUCLibrary-td23588879.html
// be defensive: see http://hudson.361315.n4.nabble.com/3-0-6-Site-copy-problem-hudson-util-IOException2-java-lang-NoClassDefFoundError-Could-not-initializey-td382337.html
}catch(UnsatisfiedLinkErrorule){
// HUDSON-8155: use Ant's chmod task on non-GNU C systems
if(chmodTask==null){
LOGGER.warning("GNU C Library not available: Using Ant's chmod task instead.");
chmodTask=newChmod();
}
chmodTask.setProject(newProject());
chmodTask.setFile(f);
chmodTask.setPerm(Integer.toOctalString(mode));
chmodTask.execute();
}
}
}
...
...
@@ -1877,6 +1903,8 @@ public final class FilePath implements Serializable {