@@ -0,0 +1,878 @@
+package main.java.launch;%0A%0Aimport java.io.File;%0Aimport org.apache.catalina.startup.Tomcat;%0A%0Apublic class Main %7B%0A%0A    public static void main(String%5B%5D args) throws Exception %7B%0A%0A        String webappDirLocation = %22src/main/webapp/%22;%0A        Tomcat tomcat = new Tomcat();%0A%0A        //The port that we should run on can be set into an environment variable%0A        //Look for that variable and default to 8080 if it isn't there.%0A        String webPort = System.getenv(%22PORT%22);%0A        if(webPort == null %7C%7C webPort.isEmpty()) %7B%0A            webPort = %228080%22;%0A        %7D%0A%0A        tomcat.setPort(Integer.valueOf(webPort));%0A%0A        tomcat.addWebapp(%22/%22, new File(webappDirLocation).getAbsolutePath());%0A        System.out.println(%22configuring app with basedir: %22 + new File(%22./%22 + webappDirLocation).getAbsolutePath());%0A%0A        tomcat.start();%0A        tomcat.getServer().await();%0A    %7D%0A%7D%0A

Create Main.java