ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleksandr Gavenko <gave...@bifit.com.ua>
Subject <ftp> target does not fail if file does not exist.
Date Tue, 02 Aug 2011 12:46:36 GMT
<?xml version="1.0" encoding="windows-1251"?>
<project default="test" basedir=".">

     <target name="test">
         <ftp action="get"
              server="${ftp.server}"
              userid="${ftp.user}"
              password="${ftp.password}"
              remotedir="/dist">
             <fileset file="lib/my.jar"/>
         </ftp>
       <echo message="xxx"/>
     </target>
</project>

   $ ant -f my2.xml -emacs
Buildfile: d:\test.xml

test:
getting files
0 files retrieved
xxx

I expect that build fail as 'my.jar' is not exist and 'echo' does not
executed.

How get this behavior?

-- 
С уважением, Александр Гавенко.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message