Skip to content

Commit

Permalink
work on fetching additional data
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Hewer committed Sep 6, 2016
1 parent 1694ab0 commit 8f1214b
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ buildscript {
}
dependencies {
classpath 'org.ajoberstar:gradle-git:1.4.2'
classpath 'de.undercouch:gradle-download-task:1.0'
// classpath 'de.undercouch:gradle-download-task:1.0'
classpath 'org.m2ci.msp:gradle-findbinary-plugin:0.4'
}
}
Expand Down
46 changes: 46 additions & 0 deletions gradlescripts/fetchResources/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
plugins {
id "de.undercouch.download" version "2.1.0"
}
import de.undercouch.gradle.tasks.download.Download

task fetchAvatar() {

def destFile = file("$rootProject.projectDir/avatar/ematoblender-model.blend")

outputs.file destFile

doLast{

destFile.parentFile.mkdirs()

download{
src 'https://github.com/m2ci-msp/ematoblender-model/releases/download/v0.1/ematoblender-model.blend'
dest destFile
}
}


}

task fetchExamples() {

def dataDir = file("$rootProject.projectDir/data")

outputs.dir dataDir

doLast{

download{

src( [
"https://github.com/m2ci-msp/ematoblender-example-data/releases/download/v0.1/VP08_bitePlane.json",
"https://github.com/m2ci-msp/ematoblender-example-data/releases/download/v0.1/VP08_nordwind.json",
"https://github.com/m2ci-msp/ematoblender-example-data/releases/download/v0.1/VP08_referencePoint.json"
])

dest dataDir
}
}


}
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include ":gradlescripts:fetchResources"
include ":gradlescripts:setup:findDependencies"
include ":gradlescripts:setup:checkVersions"
include ":gradlescripts:setup:setupEnvironment"
Expand Down

0 comments on commit 8f1214b

Please sign in to comment.