ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Ramage <...@sjrx.net>
Subject Can't use force="true" over SSHFS
Date Sat, 23 Jun 2012 20:52:45 GMT
I'm having a problem with the force='true' directive over SSHFS. At first I thought it was
just being ignored but I think the bug is more subtle than that. Based on the error it may
even be a race condition.
 
I have attached an example build file that demonstrates the error, basically every other run,
it will fail with a FileNotFound exception (Permission Denied)
 
Basically the folder structure (which ant creates in init), is as follows:
 
build.xml
localdest (A local destination to deploy to)
remotedest (A remote FUSE mounted place to deploy to)
src (the source files to deploy)
target (The actual target of remotedest)
 
i.e. here is the output of mount:
 
sjr@localhost:/home/sjr/anttest/target on /home/sjr/anttest/remotedest type fuse.sshfs (rw,nosuid,nodev,max_read=65536,user=sjr)
 
 
Attached find the output of antdiag.txt, as well as a debug run of both the success and the
fail runs.
 
 
Subsequent runs of ant follow these two patterns:
 
 
 
[13:47:44] sjr@hilbert:~/anttest$ant
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar
Buildfile: /home/sjr/anttest/build.xml
 
init:
     [echo] Mount Dir
     [exec] total 12
     [exec] 4 drwxrwxr-x 1 sjr sjr 4096 Jun 23 13:47 .
     [exec] 4 drwxrwxr-x 6 sjr sjr 4096 Jun 23 13:46 ..
     [exec] 4 -r--r--r-- 1 sjr sjr   16 Jun 23 13:47 testfile
     [echo] Dest Dir
     [exec] total 8
     [exec] 4 drwxrwxr-x 2 sjr sjr 4096 Jun 23 13:47 .
     [exec] 4 drwxrwxr-x 6 sjr sjr 4096 Jun 23 13:46 ..
     [exec] 0 -r--r--r-- 1 sjr sjr    0 Jun 23 13:47 testfile
     [echo] Target Dir
     [exec] total 12
     [exec] 4 drwxrwxr-x 2 sjr sjr 4096 Jun 23 13:47 .
     [exec] 4 drwxrwxr-x 6 sjr sjr 4096 Jun 23 13:46 ..
     [exec] 4 -r--r--r-- 1 sjr sjr   16 Jun 23 13:47 testfile
 
local:
     [copy] Copying 1 file to /home/sjr/anttest/localdest
 
remote:
     [copy] Copying 1 file to /home/sjr/anttest/remotedest
 
BUILD FAILED
/home/sjr/anttest/build.xml:51: Failed to copy /home/sjr/anttest/src/testfile to /home/sjr/anttest/remotedest/testfile
due to java.io.FileNotFoundException /home/sjr/anttest/remotedest/testfile (Permission denied)
 
Total time: 1 second
[13:47:50] sjr@hilbert:~/anttest$ant
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar
Buildfile: /home/sjr/anttest/build.xml
 
init:
     [echo] Mount Dir
     [exec] total 8
     [exec] 4 drwxrwxr-x 1 sjr sjr 4096 Jun 23 13:47 .
     [exec] 4 drwxrwxr-x 6 sjr sjr 4096 Jun 23 13:46 ..
     [echo] Dest Dir
     [exec] total 8
     [exec] 4 drwxrwxr-x 2 sjr sjr 4096 Jun 23 13:47 .
     [exec] 4 drwxrwxr-x 6 sjr sjr 4096 Jun 23 13:46 ..
     [exec] 0 -r--r--r-- 1 sjr sjr    0 Jun 23 13:47 testfile
     [echo] Target Dir
     [exec] total 8
     [exec] 4 drwxrwxr-x 2 sjr sjr 4096 Jun 23 13:47 .
     [exec] 4 drwxrwxr-x 6 sjr sjr 4096 Jun 23 13:46 ..
 
local:
     [copy] Copying 1 file to /home/sjr/anttest/localdest
 
remote:
     [copy] Copying 1 file to /home/sjr/anttest/remotedest
 
all:
     [echo] Mount Dir
     [exec] total 8
     [exec] 4 drwxrwxr-x 1 sjr sjr 4096 Jun 23 13:49 .
     [exec] 4 drwxrwxr-x 6 sjr sjr 4096 Jun 23 13:46 ..
     [exec] 0 -r--r--r-- 1 sjr sjr    0 Jun 23 13:49 testfile
     [echo] Dest Dir
     [exec] total 8
     [exec] 4 drwxrwxr-x 2 sjr sjr 4096 Jun 23 13:49 .
     [exec] 4 drwxrwxr-x 6 sjr sjr 4096 Jun 23 13:46 ..
     [exec] 0 -r--r--r-- 1 sjr sjr    0 Jun 23 13:49 testfile
     [echo] Target Dir
     [exec] total 8
     [exec] 4 drwxrwxr-x 2 sjr sjr 4096 Jun 23 13:49 .
     [exec] 4 drwxrwxr-x 6 sjr sjr 4096 Jun 23 13:46 ..
     [exec] 0 -r--r--r-- 1 sjr sjr    0 Jun 23 13:49 testfile
 
BUILD SUCCESSFUL
Total time: 3 seconds
[13:49:18] sjr@hilbert:~/anttest$ant
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-7-openjdk-amd64/lib/tools.jar
Buildfile: /home/sjr/anttest/build.xml
 
init:
     [echo] Mount Dir
     [exec] total 8
     [exec] 4 drwxrwxr-x 1 sjr sjr 4096 Jun 23 13:49 .
     [exec] 4 drwxrwxr-x 6 sjr sjr 4096 Jun 23 13:46 ..
     [exec] 0 -r--r--r-- 1 sjr sjr    0 Jun 23 13:49 testfile
     [echo] Dest Dir
     [exec] total 8
     [exec] 4 drwxrwxr-x 2 sjr sjr 4096 Jun 23 13:49 .
     [exec] 4 drwxrwxr-x 6 sjr sjr 4096 Jun 23 13:46 ..
     [exec] 0 -r--r--r-- 1 sjr sjr    0 Jun 23 13:49 testfile
     [echo] Target Dir
     [exec] total 8
     [exec] 4 drwxrwxr-x 2 sjr sjr 4096 Jun 23 13:49 .
     [exec] 4 drwxrwxr-x 6 sjr sjr 4096 Jun 23 13:46 ..
     [exec] 0 -r--r--r-- 1 sjr sjr    0 Jun 23 13:49 testfile
 
local:
     [copy] Copying 1 file to /home/sjr/anttest/localdest
 
remote:
     [copy] Copying 1 file to /home/sjr/anttest/remotedest
 
BUILD FAILED
/home/sjr/anttest/build.xml:51: Failed to copy /home/sjr/anttest/src/testfile to /home/sjr/anttest/remotedest/testfile
due to java.io.FileNotFoundException /home/sjr/anttest/remotedest/testfile (Permission denied)
 
Total time: 1 second
 


Mime
View raw message