develog

[eclipse] ant sftp ssh 본문

IDE/eclipse

[eclipse] ant sftp ssh

냐옴 2015. 9. 9. 18:17

<?xml version="1.0" encoding="UTF-8"?>
<project name="MyWeb" default="sftp_send">

    <property file="_ant_conf.properties" />

    <taskdef name="ssh"
        classpath="./lib/maverick-ant.jar"
        classname="com.sshtools.ant.Ssh"
    />

    <target name="sftp_send" depends="init">
        <ssh host="${SFTP.SERVER}"
        port="${SFTP.PORT}"
        username="${SFTP.ID}"
        password="${SFTP.PW}"
        version="2">

            <sftp action="put" remotedir="${SFTP.REMOTE.DIR}" verbose="true">

                <fileset dir="${WEB.ROOT}" casesensitive="yes">

                    <include name="**/*" />
                    <include name="index.html" />
                </fileset>

            </sftp>

 

            <echo cmd="echo 11" />

        </ssh>
    </target>

</project>

 




    

            classpath="./lib/maverick-ant.jar"
        classname="com.sshtools.ant.Ssh"
    />

    
        SFTP.SERVER}"
        port="${SFTP.PORT}"
        username="${SFTP.ID}"
        password="${SFTP.PW}"
        version="2">

            SFTP.REMOTE.DIR}" verbose="true">

                WEB.ROOT}" casesensitive="yes">
                    index.html" />
                

            

           

        
    




'IDE > eclipse' 카테고리의 다른 글

[Eclipse] eclipse.ini  (0) 2015.10.21
[Eclipse] WST  (0) 2015.09.23
[Eclipse] MyEclipse, Server Deployment, Add 안될때  (0) 2015.08.11
[Eclipse] install TPTP  (0) 2015.05.14
[Eclipse] eclipse class diagram  (0) 2015.04.14
Comments