diff options
author | Parménides GV <parmegv@sdf.org> | 2014-05-14 18:45:33 +0200 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2014-05-14 18:45:33 +0200 |
commit | 0125b1a65c7c7cb31f0fde597b12d722c289e3f4 (patch) | |
tree | 899773d8993a80d4c862b9f903cd39198d3b99f5 /build.gradle | |
parent | dac8d8e2fa1317091686a66b29763b2e33537255 (diff) |
clone ics-openvpn up-to-date if its folder exists
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 16 |
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 |