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

Commit

Permalink
Update download links to v0.5 packaged distributions
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Chris Bethune committed Feb 18, 2015
1 parent c9a84dc commit 7dc806f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ test-output
.gradle
bin
*/**/coverage
tile-quickstart.zip
tile-quickstart.war
out/*
16 changes: 9 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ addSparkJar org.apache.hbase hbase-client $hbaseVersion"""
copyTileRenderingToExploded.inputs.dir TILE_RENDERING_BUILD
copyTileRenderingToExploded.outputs.dir EXPLODED_LIBS


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

// configure the war task to pick up the tile client build files
war {
doLast {
ant.unzip(src: war.archivePath, dest: EXPLODED_DIR)
copyClientJsToExploded.execute()
copyClientCssToExploded.execute()
}
from fileTree(TILE_CLIENT_BUILD).include(["*.js", "*.css"])
}
// install to ensure everything is ready for debug hotswap builds
war.dependsOn ":tile-client:install"

task explodeWar() {
doLast {
ant.unzip(src: war.archivePath, dest: EXPLODED_DIR)
}
}
explodeWar.dependsOn war

// Jetty Exploded War
// Configure the jetty run task
jettyRun {
Expand All @@ -356,7 +358,7 @@ addSparkJar org.apache.hbase hbase-client $hbaseVersion"""
webAppSourceDirectory = file(EXPLODED_DIR)
}
jettyRun.dependsOn watchThread
jettyRun.dependsOn war
jettyRun.dependsOn explodeWar
}
}
}
22 changes: 14 additions & 8 deletions tile-examples/julia-demo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,26 @@ apply plugin: "jetty"
// can inject client build setup
ext.clientProject = true

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

createQuickstart.dependsOn war

// create tiles-quickstart.zip on intall
install.dependsOn zipProjectAsQuickstart
install.dependsOn createQuickstart

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

Expand Down
1 change: 1 addition & 0 deletions tile-examples/julia-demo/src/main/resources/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.zip

0 comments on commit 7dc806f

Please sign in to comment.