develog

ant ftp 본문

IDE/eclipse

ant ftp

냐옴 2012. 11. 5. 13:39

 

build.xml

<?xml version="1.0" encoding="UTF-8"?>
<project name="projectName" default="ftp" basedir=".">
    
    <target name="info">
        <echo message="$" />
        <echo message="$" />
        <echo message="$" />
        <echo message="$" />
        <echo message="$" />
    </target>

    <target name="init" depends="info">
        <property name="FTP.SERVER" value="127.0.0.1" />
        <property name="FTP.PORT" value="21" />
        <property name="FTP.ID" value="dev" />
        <property name="FTP.PW" value="dev" />
        <property name="FTP.REMOTE.DIR" value="/home/dev/www" />
        <property name="WEB.CONTENT" value="$/WebContent" />
        <echo message="FTP.SERVER : $" />
        <echo message="FTP.REMOTE.DIR : $" />
        <echo message="WEB.CONTENT : $" />
    </target>

    <target name="ftp" depends="init">
        <ftp server="$"
            port="$"
            userid="$"
            password="$"
            remotedir="$"
            passive="no"
            verbose="yes">
            <fileset dir="$" casesensitive="yes">
                <include name="test/test.jsp" />
            </fileset>
        </ftp>
    </target>

</project>

 

Comments