changed folder structure

This commit is contained in:
2019-10-03 08:42:09 +02:00
parent 889cdef86b
commit 4e4ecb5dc6
18 changed files with 48 additions and 46 deletions

View File

@@ -0,0 +1,33 @@
package com.wasteinformationserver;
import com.wasteinformationserver.basicutils.Log;
import com.wasteinformationserver.website.Webserver;
public class main {
public static void main(String[] args) {
/*
com.wasteinformationserver.Date D=new com.wasteinformationserver.Date();
D.getdata();
D.printList();
*/
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
try {
Thread.sleep(200);
Log.warning("Shutting down ...");
//shutdown routine
} catch (InterruptedException e) {
e.printStackTrace();
}
}));
Thread mythread = new Thread(() -> new Webserver().startserver());
mythread.start();
Log.message("thread started");
}
}