This repository was archived by the owner on May 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +25
-16
lines changed Expand file tree Collapse file tree 4 files changed +25
-16
lines changed Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ test-output
15
15
.gradle
16
16
bin
17
17
* /** /coverage
18
- tile-quickstart.zip
18
+ tile-quickstart.war
19
19
out /*
Original file line number Diff line number Diff line change @@ -256,7 +256,6 @@ addSparkJar org.apache.hbase hbase-client $hbaseVersion"""
256
256
copyTileRenderingToExploded. inputs. dir TILE_RENDERING_BUILD
257
257
copyTileRenderingToExploded. outputs. dir EXPLODED_LIBS
258
258
259
-
260
259
// Copy binning-utilities jar into the exploded war
261
260
task copyBinningUtilToExploded(type : Copy ) {
262
261
from fileTree(BINNING_UTIL_BUILD ). include(" *.jar" )
@@ -337,15 +336,18 @@ addSparkJar org.apache.hbase hbase-client $hbaseVersion"""
337
336
338
337
// configure the war task to pick up the tile client build files
339
338
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" ])
345
340
}
346
341
// install to ensure everything is ready for debug hotswap builds
347
342
war. dependsOn " :tile-client:install"
348
343
344
+ task explodeWar() {
345
+ doLast {
346
+ ant. unzip(src : war. archivePath, dest : EXPLODED_DIR )
347
+ }
348
+ }
349
+ explodeWar. dependsOn war
350
+
349
351
// Jetty Exploded War
350
352
// Configure the jetty run task
351
353
jettyRun {
@@ -356,7 +358,7 @@ addSparkJar org.apache.hbase hbase-client $hbaseVersion"""
356
358
webAppSourceDirectory = file(EXPLODED_DIR )
357
359
}
358
360
jettyRun. dependsOn watchThread
359
- jettyRun. dependsOn war
361
+ jettyRun. dependsOn explodeWar
360
362
}
361
363
}
362
364
}
Original file line number Diff line number Diff line change @@ -12,20 +12,26 @@ apply plugin: "jetty"
12
12
// can inject client build setup
13
13
ext. clientProject = true
14
14
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
+ }
21
25
}
22
26
27
+ createQuickstart. dependsOn war
28
+
23
29
// create tiles-quickstart.zip on intall
24
- install. dependsOn zipProjectAsQuickstart
30
+ install. dependsOn createQuickstart
25
31
26
32
// task to delete the quickstart zip
27
33
task deleteQuickstart (type : Delete ) {
28
- File quickstart = file( rootDir . getPath() + " /tile-quickstart.zip " );
34
+ File quickstart = file( " ${ rootDir } /tile-quickstart.war " );
29
35
delete( quickstart )
30
36
}
31
37
Original file line number Diff line number Diff line change
1
+ * .zip
You can’t perform that action at this time.
0 commit comments