A tab completion script that works for Bash on Mac OS X. Relies on the BSD md5 command on Mac and md5sum on Linux, so as long as yo have one of those two commands, this should work.
$ gradle [TAB]
| /* node getImages.js http://www.yahoo.co.jp */ | |
| var htmlparser = require('htmlparser'); | |
| var sys = require('sys'); | |
| var http = require('http'); | |
| var fs = require('fs'); | |
| var url = require('url'); | |
| var path = require('path'); | |
| if(process.argv.length !== 3){ |
| import org.gradle.api.NamedDomainObjectContainer | |
| import org.gradle.api.Plugin | |
| import org.gradle.api.Project | |
| import org.gradle.api.DefaultTask | |
| import org.gradle.api.tasks.TaskAction | |
| import liquibase.integration.commandline.Main | |
| apply plugin: LiquibasePlugin | |
| buildscript { |
| import org.gradle.api.NamedDomainObjectContainer | |
| import org.gradle.api.Plugin | |
| import org.gradle.api.Project | |
| import org.gradle.api.DefaultTask | |
| import org.gradle.api.tasks.TaskAction | |
| import liquibase.integration.commandline.Main | |
| apply plugin: LiquibasePlugin | |
| buildscript { |
| android.applicationVariants.all{ variant -> | |
| // This is an annoying hack to get around the fact that the Gradle plugin does not support | |
| // having libraries with different minSdkVersions. Play Services has a min version of 9 (Gingerbread) | |
| // but Android Maps Utils supports 8 (Froyo) still | |
| variant.processManifest.doFirst { | |
| File manifestFile = file("${buildDir}/exploded-bundles/ComGoogleMapsAndroidAndroidMapsUtils03.aar/AndroidManifest.xml") | |
| if (manifestFile.exists()) { | |
| println("Replacing minSdkVersion in Android Maps Utils") | |
| String content = manifestFile.getText('UTF-8') | |
| content = content.replaceAll(/minSdkVersion="8"/, 'minSdkVersion=\"9\"') |
| /*jshint strict:false*/ | |
| /*global CasperError console phantom require*/ | |
| /** | |
| * grab links and push them into xml | |
| */ | |
| var casper = require("casper").create({ | |
| }); |
| import org.gradle.api.tasks.Exec | |
| class Curl extends Exec { | |
| private String curlExecutable = "curl" | |
| String curlArgs = "" | |
| public Curl() { | |
| this.setExecutable(curlExecutable) | |
| } |
| worker_processes 1; | |
| error_log logs/error.log; | |
| events { | |
| worker_connections 1024; | |
| } | |
| worker_processes 1; | |
| error_log logs/error.log; | |
| events { | |
| worker_connections 1024; | |
| } |
| import org.gradle.api.NamedDomainObjectContainer | |
| import org.gradle.api.Plugin | |
| import org.gradle.api.Project | |
| import org.gradle.api.DefaultTask | |
| import org.gradle.api.tasks.TaskAction | |
| import liquibase.integration.commandline.Main | |
| apply plugin: LiquibasePlugin | |
| buildscript { |