Skip to content
Snippets Groups Projects
Commit 810511b0 authored by Felix Sidokhine's avatar Felix Sidokhine
Browse files

cleanup

Change-Id: Ia3bfad3147f2898cb7066ed7ef63e1488f38038d
parent 8c431f37
No related branches found
No related tags found
No related merge requests found
......@@ -78,14 +78,15 @@ public class Server {
public static void main(String[] args) {
//This is a fix to drop old cached stuff from the tomcat classloader.
ClassPool.getDefault().clearImportedPackages();
ScopedServletAnnotationScanner scanner = new ScopedServletAnnotationScanner();
//TODO: Remove this entirely, as we no longer need to do dynamic codegen.
//ScopedServletAnnotationScanner scanner = new ScopedServletAnnotationScanner();
//Here we need to scan and modify our servlets, this is not necessarily the greatest thing ever.
try {
scanner.scanAndModify(PackageScanner.getClasses());
}
catch (Exception e){
log.error("Could not modify the annotated files");
}
//try {
// scanner.scanAndModify(PackageScanner.getClasses());
//}
//catch (Exception e){
// log.error("Could not modify the annotated files");
//}
switch (args.length) {
case 1:
tomcatLauncher = new TomcatLauncher(Integer.parseInt(args[0]));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment