Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- configurations {
- ftpAntTask
- }
- dependencies {
- ftpAntTask("org.apache.ant:ant-commons-net:1.8.4") {
- module("commons-net:commons-net:1.4.1") {
- dependencies "oro:oro:2.0.8:jar"
- }
- }
- }
- task ftp << {
- ant {
- taskdef(name: 'ftp',
- classname: 'org.apache.tools.ant.taskdefs.optional.net.FTP',
- classpath: configurations.ftpAntTask.asPath)
- ftp(server: "ftp.apache.org", userid: "anonymous", password: "me@myorg.com") {
- fileset(dir: "htdocs/manual")
- }
- }
- }
- > Could not find org.apache.ant:ant-commons-net:1.8.4.
- buildscript {
- repositories {
- mavenCentral()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:0.4'
- }
- }
- apply plugin: 'android'
- dependencies {
- compile files('libs/android-support-v4.jar')
- }
- android {
- compileSdkVersion 17
- buildToolsVersion "17.0.0"
- defaultConfig {
- minSdkVersion 14
- targetSdkVersion 17
- }
- signingConfigs {
- signed {
- storeFile file("(removed)")
- storePassword "(removed)"
- keyAlias "(removed)"
- keyPassword "(removed)"
- }
- }
- buildTypes {
- signed {
- debuggable false
- jniDebugBuild false
- signingConfig signingConfigs.signed
- }
- }
- }
- configurations {
- ftpAntTask
- }
- dependencies {
- ftpAntTask("org.apache.ant:ant-commons-net:1.8.4") {
- module("commons-net:commons-net:1.4.1") {
- dependencies "oro:oro:2.0.8:jar"
- }
- }
- }
- task ftp << {
- ant {
- taskdef(name: 'ftp',
- classname: 'org.apache.tools.ant.taskdefs.optional.net.FTP',
- classpath: configurations.ftpAntTask.asPath)
- ftp(server: "(removed)", userid: "(removed)", password: "(removed)", remoteDir: "(removed)") {
- fileset(dir: "(removed)") {
- include(name: "(removed)")
- }
- }
- }
- }
- repositories{
- mavenCentral()
- }
- ant {
- get(src: "ftp://<hostname>/remote/path/to/file.jar", dest: "/local/path/to/file", username: 'anonymous', password: 'anonymous')
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement