내용으로 건너뛰기
권남
사용자 도구
로그인
사이트 도구
검색
도구
문서 보기
이전 판
역링크
최근 바뀜
미디어 관리자
사이트맵
로그인
>
최근 바뀜
미디어 관리자
사이트맵
추적:
gradle:ftp
이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요.
====== Gradle FTP ====== [[https://ant.apache.org/manual/Tasks/ftp.html|ant ftp task]] 사용. <code groovy> repositories { mavenCentral() } configurations { ftpAntTask } dependencies { ftpAntTask "org.apache.ant:ant-commons-net:1.9.4" } ext { ftpServer = 'localhost' ftpPort = 21 ftpUserId = 'someuser' ftpPassword = 'passw@rd' ftpRemoteDir = 'remote/target/dir' } task ftpUpload << { ant { taskdef(name: 'ftp', classname: 'org.apache.tools.ant.taskdefs.optional.net.FTP', classpath: configurations.ftpAntTask.asPath) // 여기서 추가된 클래스패스 사용! ftp(server: ftpServer, port: ftpPort, remotedir: ftpRemoteDir, userid: ftpUserId, password: ftpPassword, depends: "yes", verbose: "yes", binary: "yes") { fileset(dir: "local/dir") } } } </code>
gradle/ftp.txt
· 마지막으로 수정됨: 2015/03/26 16:25 저자
kwon37xi
문서 도구
문서 보기
이전 판
역링크
맨 위로