Fixing build issues
This commit is contained in:
parent
8fad681f01
commit
9a44631a96
2 changed files with 12 additions and 2 deletions
12
build.gradle
12
build.gradle
|
|
@ -13,7 +13,7 @@ allprojects {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'se.koc:zutil:1.0.253'
|
implementation 'se.koc:zutil:1.0.0-SNAPSHOT'
|
||||||
|
|
||||||
testImplementation 'junit:junit:4.12'
|
testImplementation 'junit:junit:4.12'
|
||||||
testImplementation 'org.hamcrest:hamcrest-core:2.2'
|
testImplementation 'org.hamcrest:hamcrest-core:2.2'
|
||||||
|
|
@ -50,10 +50,20 @@ distributions {
|
||||||
from 'hal.conf.example'
|
from 'hal.conf.example'
|
||||||
from 'hal-default.db'
|
from 'hal-default.db'
|
||||||
from 'logging.properties'
|
from 'logging.properties'
|
||||||
|
|
||||||
|
project.subprojects.each { sub ->
|
||||||
|
into('lib') {
|
||||||
|
from sub.jar
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
application {
|
||||||
|
mainClass = 'se.hal.HalServer'
|
||||||
|
}
|
||||||
|
|
||||||
// ------------------------------------
|
// ------------------------------------
|
||||||
// Hal plugin common configuration
|
// Hal plugin common configuration
|
||||||
// ------------------------------------
|
// ------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ public class MapWebPage extends HalWebPage {
|
||||||
if (bgImage == null)
|
if (bgImage == null)
|
||||||
loadBgImage();
|
loadBgImage();
|
||||||
if (bgImage == null)
|
if (bgImage == null)
|
||||||
out.setStatusCode(404);
|
out.setResponseStatusCode(404);
|
||||||
else {
|
else {
|
||||||
out.setHeader("Content-Type", "image/" + bgType);
|
out.setHeader("Content-Type", "image/" + bgType);
|
||||||
out.setHeader("Content-Length", "" + bgImage.length);
|
out.setHeader("Content-Length", "" + bgImage.length);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue