Fixing build issues

This commit is contained in:
Ziver Koc 2020-11-10 16:40:31 +01:00
parent 8fad681f01
commit 9a44631a96
2 changed files with 12 additions and 2 deletions

View file

@ -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
// ------------------------------------ // ------------------------------------

View file

@ -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);