Skip to content

Commit a501a02

Browse files
committed
added task to download local data from AGOL
1 parent 18cfd0b commit a501a02

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

build.gradle

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
def rootDir = "../"
2+
def dataZip = rootDir + 'data.zip'
3+
def samplesData = rootDir + 'samples-data'
4+
15
allprojects {
26
apply plugin: 'java'
37
apply plugin: 'eclipse'
@@ -10,6 +14,19 @@ allprojects {
1014
}
1115

1216
dependencies {
13-
compile 'com.esri.arcgisruntime:arcgis-java:100.0.0-1450'
17+
compile 'com.esri.arcgisruntime:arcgis-java:100.0.0-1459'
1418
}
1519
}
20+
21+
// Download data from AGOL for offline data samples
22+
task downloadData {
23+
if (!file(samplesData).exists()) {
24+
ant.get(src: 'https://arcgisruntime.maps.arcgis' +
25+
'.com/sharing/rest/content/items/8b10b52320464b1bb728e552cfa6cb50/data', dest: dataZip)
26+
copy {
27+
from zipTree(dataZip)
28+
into(rootDir)
29+
}
30+
delete(dataZip)
31+
}
32+
}

0 commit comments

Comments
 (0)