<?xml version="1.0" encoding="utf-8" ?>
<project name="ant_ftp_upload" default="upload" basedir="." > <!-- basedir : build.xml 파일로부터의 상대 경로 -->
<!-- 전송할 파일이 있는 위치 -->
<property name="local.home" value="${basedir}/members/"/>
<property name="local.home2" value="${basedir}"/>
<!-- 서버에 upload할 위치 -->
<property name="ftp.home.dir" value="/wasapp/krecu/members/" />
<!-- 서버에 upload할 파일 -->
<property name="ftp.upload.file1" value="default.jsp" />
<property name="ftp.server.162" value="1.2.3.162" />
<property name="ftp.server.163" value="1.2.3.163" />
<property name="ftp.server.66" value="1.2.3.66" />
<property name="ftp.server.67" value="1.2.3.67" />
<property name="ftp.server.69" value="1.2.3.69" />
<property name="ftp.server.70" value="1.2.3.70" />
<property name="ftp.port" value="21" />
<property name="ftp.userid" value="aa" />
<property name="ftp.pw" value="aa11" />
<!--
depends="no" 덮어씌움
depends="yes" 덮어씌우지 않음
-->
<target name="upload" >
<!-- 전송할 서버 정보 -->
<ftp
server="${ftp.server.162}"
port="${ftp.port}"
remotedir="${ftp.home.dir}"
userid="${ftp.userid}"
password="${ftp.pw}"
verbose="yes"
depends="no"
timediffauto="yes"
>
<!-- 전송할 파일 -->
<fileset dir="${local.home2}">
<!--
해당 폴더(local.home2)의 파일을 복사한다.
여러개일경우 추가로 include 시키면 된다.
-->
<include name="${ftp.upload.file1}" />
</fileset>
</ftp>
<ftp
server="${ftp.server.163}"
port="${ftp.port}"
remotedir="${ftp.home.dir}"
userid="${ftp.userid}"
password="${ftp.pw}"
verbose="yes"
depends="no"
timediffauto="yes"
>
<!-- 전송할 파일 -->
<fileset dir="${local.home2}">
<include name="${ftp.upload.file1}" />
</fileset>
</ftp>
<ftp
server="${ftp.server.66}"
port="${ftp.port}"
remotedir="${ftp.home.dir}"
userid="${ftp.userid}"
password="${ftp.pw}"
verbose="yes"
depends="no"
timediffauto="yes"
>
<!-- 전송할 파일 -->
<fileset dir="${local.home2}">
<include name="${ftp.upload.file1}" />
</fileset>
</ftp>
<ftp
server="${ftp.server.67}"
port="${ftp.port}"
remotedir="${ftp.home.dir}"
userid="${ftp.userid}"
password="${ftp.pw}"
verbose="yes"
depends="no"
timediffauto="yes"
>
<!-- 전송할 파일 -->
<fileset dir="${local.home2}">
<include name="${ftp.upload.file1}" />
</fileset>
</ftp>
<ftp
server="${ftp.server.69}"
port="${ftp.port}"
remotedir="${ftp.home.dir}"
userid="${ftp.userid}"
password="${ftp.pw}"
verbose="yes"
depends="no"
timediffauto="yes"
>
<!-- 전송할 파일 -->
<fileset dir="${local.home2}">
<include name="${ftp.upload.file1}" />
</fileset>
</ftp>
<ftp
server="${ftp.server.70}"
port="${ftp.port}"
remotedir="${ftp.home.dir}"
userid="${ftp.userid}"
password="${ftp.pw}"
verbose="yes"
depends="no"
timediffauto="yes"
>
<!-- 전송할 파일 -->
<fileset dir="${local.home2}">
<include name="${ftp.upload.file1}" />
</fileset>
</ftp>
</target>
</project>
'Xml' 카테고리의 다른 글
[Xml] Web.xml - 2 (0) | 2011.03.02 |
---|---|
[Xml] Web.xml (0) | 2011.03.02 |
[Xml] Filter를 사용하여 프로퍼티의 정보 활용 (0) | 2010.12.08 |
[Xml] Web.xml - Filter (0) | 2010.12.08 |
[Xml] JDOM 설치와 (JAVA로 XML 문서만들기/추가하기) (0) | 2010.12.07 |