summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-05-14 18:45:33 +0200
committerParménides GV <parmegv@sdf.org>2014-05-14 18:45:33 +0200
commit0125b1a65c7c7cb31f0fde597b12d722c289e3f4 (patch)
tree899773d8993a80d4c862b9f903cd39198d3b99f5
parentdac8d8e2fa1317091686a66b29763b2e33537255 (diff)
clone ics-openvpn up-to-date if its folder exists
-rw-r--r--build.gradle16
1 files changed, 10 insertions, 6 deletions
diff --git a/build.gradle b/build.gradle
index 2103b009..90e75752 100644
--- a/build.gradle
+++ b/build.gradle
@@ -20,16 +20,20 @@ allprojects {
apply plugin: 'mercurial-mq'
task cloneIcsOpenVPN( type: HgClone ) {
- sourceUrl = 'https://code.google.com/p/ics-openvpn/'
- workingDir = '.'
+ ext.srcFile = file('build.gradle')
+ ext.destDir = new File('.', 'ics-openvpn')
+ inputs.file srcFile
+ outputs.dir destDir
+
+ sourceUrl = 'https://code.google.com/p/ics-openvpn/'
}
task updateIcsOpenVPN( type: HgUpdate, dependsOn: 'pullIcsOpenVPN' ) {
- workingDir = 'ics-openvpn'
- branch = 'default'
+ workingDir = 'ics-openvpn'
+ branch = 'default'
}
task pullIcsOpenVPN( type: HgPull ) {
- sourceUrl = 'https://code.google.com/p/ics-openvpn/'
- workingDir = 'ics-openvpn'
+ sourceUrl = 'https://code.google.com/p/ics-openvpn/'
+ workingDir = 'ics-openvpn'
} \ No newline at end of file