I am trying to change the mode of some of my deployment files to
executable by using the ftp task. It's not working. I checked Google,
the ant doc and the commons-net api doc without finding much about
chmod. What am I doing wrong?

Here is my ftp task.

<ftp server="${servername}"
     userid="${username}"
     password="${password}"
     remotedir="${remoteapphome}"
     action="chmod"
     chmod="+x"
>
   <fileset dir=".">
      <patternset refid="exec.fileset"/>
   </fileset>
</ftp>

Here is the output.

[ftp] chmod files
[ftp] Failed to issue Site Command: chmod +x start.csh
[ftp] Failed to issue Site Command: chmod +x stop.csh
[ftp] 2 files mode changed


Reply via email to