Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 7dc806f

Browse files
author
Chris Bethune
committed
Update download links to v0.5 packaged distributions
tiles-quickstart is now build into a .war instead of a zipped project directory. Added changes to quick-start guide for .war. - Copy renaming of Tile Client Template over to Download page - Update URL of downloadable asset - Minor edits to Quick Start
1 parent c9a84dc commit 7dc806f

File tree

4 files changed

+25
-16
lines changed

4 files changed

+25
-16
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ test-output
1515
.gradle
1616
bin
1717
*/**/coverage
18-
tile-quickstart.zip
18+
tile-quickstart.war
1919
out/*

build.gradle

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,6 @@ addSparkJar org.apache.hbase hbase-client $hbaseVersion"""
256256
copyTileRenderingToExploded.inputs.dir TILE_RENDERING_BUILD
257257
copyTileRenderingToExploded.outputs.dir EXPLODED_LIBS
258258

259-
260259
// Copy binning-utilities jar into the exploded war
261260
task copyBinningUtilToExploded(type: Copy) {
262261
from fileTree(BINNING_UTIL_BUILD).include("*.jar")
@@ -337,15 +336,18 @@ addSparkJar org.apache.hbase hbase-client $hbaseVersion"""
337336

338337
// configure the war task to pick up the tile client build files
339338
war {
340-
doLast {
341-
ant.unzip(src: war.archivePath, dest: EXPLODED_DIR)
342-
copyClientJsToExploded.execute()
343-
copyClientCssToExploded.execute()
344-
}
339+
from fileTree(TILE_CLIENT_BUILD).include(["*.js", "*.css"])
345340
}
346341
// install to ensure everything is ready for debug hotswap builds
347342
war.dependsOn ":tile-client:install"
348343

344+
task explodeWar() {
345+
doLast {
346+
ant.unzip(src: war.archivePath, dest: EXPLODED_DIR)
347+
}
348+
}
349+
explodeWar.dependsOn war
350+
349351
// Jetty Exploded War
350352
// Configure the jetty run task
351353
jettyRun {
@@ -356,7 +358,7 @@ addSparkJar org.apache.hbase hbase-client $hbaseVersion"""
356358
webAppSourceDirectory = file(EXPLODED_DIR)
357359
}
358360
jettyRun.dependsOn watchThread
359-
jettyRun.dependsOn war
361+
jettyRun.dependsOn explodeWar
360362
}
361363
}
362364
}

tile-examples/julia-demo/build.gradle

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,26 @@ apply plugin: "jetty"
1212
// can inject client build setup
1313
ext.clientProject = true
1414

15-
// task to zip up this example as the quickstart app
16-
task zipProjectAsQuickstart(type: Zip) {
17-
from "${projectDir}"
18-
exclude "build", "*.iml", "README.md"
19-
destinationDir file( rootDir.getPath() )
20-
archiveName "tile-quickstart.zip"
15+
// Task to copy the .war file and rename to 'tile-quickstart.war'
16+
// This is hacky because gradle does not like it if you try to copy into
17+
// the rootdir using a Copy task on Windows. See:
18+
// http://forums.gradle.org/gradle/topics/error-with-a-copy-task-on-windows
19+
task createQuickstart() {
20+
doLast {
21+
ant.copy( file: war.archivePath, todir: rootDir ) {
22+
}
23+
file( "${rootDir}/"+war.archiveName ).renameTo(file( "${rootDir}/tile-quickstart.war" ))
24+
}
2125
}
2226

27+
createQuickstart.dependsOn war
28+
2329
// create tiles-quickstart.zip on intall
24-
install.dependsOn zipProjectAsQuickstart
30+
install.dependsOn createQuickstart
2531

2632
// task to delete the quickstart zip
2733
task deleteQuickstart(type: Delete) {
28-
File quickstart = file( rootDir.getPath() + "/tile-quickstart.zip" );
34+
File quickstart = file( "${rootDir}/tile-quickstart.war" );
2935
delete( quickstart )
3036
}
3137

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.zip

0 commit comments

Comments
 (0)