terça-feira, 13 de agosto de 2013
NANT - ftpUpload - [ftpUpload] ProtocolError - The remote server returned an error: (550) File unavailable (eg, file not found, no access).
[ftpUpload] ProtocolError - The remote server returned an error: (550) File unavailable (eg, file not found, no access).
Be the build file bellow the one I'm currently using to upload the files and directories of C:\ServicePublish
<project name="buildSolution" default="upload">
<target name="upload" description="Upload files">
<ftpUpload host="server001" username="user001" password="password001" todir="/MyService" >
<fileset basedir="C:\ServicePublish\">
<include name="**/*" />
</fileset>
</ftpUpload>
</target>
</project>
Something you should understand
On server001, in /MyService, you are obliged to have the same tree of C:\ServicePublish
In other words
If the structure of your local machine is
C:\ServicePublish\Db
C:\ServicePublish\XML
C:\ServicePublish\Bin
The structure of /MyService must be
/MyService/Db
/MyService/XML
/MyService/Bin
Otherwise, you're gonna receive the message:
[ftpUpload] ProtocolError - The remote server returned an error: (550) File unavailable (eg, file not found, no access).
Conclusion:
ftpLoad doesn't create directories!
Assinar:
Postar comentários (Atom)
Nenhum comentário:
Postar um comentário