[GRADLE-2374] Chmod not found when running under Windows Created: 07/Jul/12 Updated: 04/Jan/13 Resolved: 18/Jul/12 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 1.0 |
Fix Version/s: | 1.1-rc-1 |
Type: | Bug | ||
Reporter: | Gradle Forums | Assignee: | René Gröschke (Inactive) |
Resolution: | Fixed | Votes: | 0 |
Description |
Following repeatedly getting this error in a large multi Java project on a Windows XP PC, I've created a simple build.gradle containing only the line apply plugin: 'java' in a project which is empty. Running gradle build gives the following stack trace. My Java version is 1.6.0_31, Gradle version is 1.0 rc 3:
at com.sun.jna.Function.(Function.java:179) BUILD FAILED Total time: 3.359 secs |
Comments |
Comment by Gradle Forums [ 07/Jul/12 ] |
for setting file permissions, gradle tries to load a jna implementation of chmod. The expected behaviour on windows is, that loading the native jna library via Native#loadLibrary already fails and Gradle falls back to a emptychmod implementation. I have tested this on windows 7. Unfortunately I have no windows xp system available to double check this. Can you do me a favour and run import org.gradle.internal.nativeplatform.jna.LibC; On my windows 7 machine, this results in a LinkageError, which is also the expected behaviour for winxp. regards, |
Comment by Gradle Forums [ 07/Jul/12 ] |
Running this code on a Windows XP PC gives no error - I added a System.out.println after the call to print out the value libc and get |
Comment by Gradle Forums [ 07/Jul/12 ] |
Is there anything further I can do on this - this is preventing a move to Gradle 1.0. Thanks |