ant

build.xml per deploy FTP con Ant

Deploy di un sito html con Ant e FTP. Lanciare
ant -lib /path/to/commons-net/commons-net/1.4.1/commons-net-1.4.1.jar site-deploy
nella directory in cui si trova il file build.xml. Tutti i contenuti della directory ./site/ verranno trasferiti al server.
<project>
    <target name="site-deploy">
      <ftp server="***"
           remotedir="/var/www/"
           userid="***"
           password="***"
           depends="no"
           binary="yes">
     <fileset dir="./site">
        <include name="**/*"/>
     </fileset>
     </ftp>
   </target>
</project>
Condividi contenuti