Apache Ant version 1.7.1 compiled on June 27 2008
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.5 in: C:\Program Files\Java\jdk1.5.0_09\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
Setting ro project property: ant.file -> D:\test\upload\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile D:\test\upload\build.xml with URI = file:/D:/test/upload/build.xml
Setting ro project property: ant.project.name -> alogix
Adding reference: alogix
Setting ro project property: ant.file.alogix -> D:\test\upload\build.xml
Project base dir set to: D:\test\upload
+Target:
+Target: scp.about
+Target: scp.config
+Target: scp.deploy
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
Setting project property: ant.configFile -> D:\test\upload\antconfig.txt
Setting project property: scp.server -> 10.52.107.142:22
Setting project property: scp.dir -> /u/username/builds/
Setting project property: scp.password -> password
Setting project property: scp.user -> username
Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor
Adding reference: ant.executor
Build sequence for target(s) `scp.deploy' is [scp.about, scp.config, scp.deploy]
Complete build sequence is [scp.about, scp.config, scp.deploy, ]
...
scp.deploy:
[scp] Connecting to x.x.x.x:22
[scp] Sending: myfile.txt : 20
[scp] File transfer time: 0.97 Average Rate: 20.66 B/s
BUILD FAILED
com.jcraft.jsch.JSchException: 2: No such file
at org.apache.tools.ant.taskdefs.optional.ssh.ScpToMessageBySftp.doSingleTransfer(ScpToMessageBySftp.java:137)
at org.apache.tools.ant.taskdefs.optional.ssh.ScpToMessageBySftp.execute(ScpToMessageBySftp.java:125)
........
C3 = C1.go(C2); // which returns null
Hence, C3 was NEVER assigned to a New Object!