Skip to content

Commit

Permalink
#78 - embedded jetty server impl in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
akorobov committed Jan 23, 2024
1 parent 931c5ba commit 1989284
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import org.eclipse.jetty.plus.webapp.EnvConfiguration;
import org.eclipse.jetty.plus.webapp.PlusConfiguration;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.util.resource.Resource;
import org.eclipse.jetty.webapp.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand All @@ -25,9 +26,10 @@ public static void main(String[] args) throws Exception {

WebAppContext webAppContext = new WebAppContext();
webAppContext.setContextPath(config.getJettyContext());
webAppContext.setDefaultsDescriptor("src/main/webapp/WEB-INF/web.xml");
webAppContext.setDefaultsDescriptor("embedded-webapp/WEB-INF/web.xml");
webAppContext.setDescriptor(config.webDescriptorPath());
webAppContext.setWar("src/main/webapp");
Resource webappResource = Resource.newClassPathResource("embedded-webapp");
webAppContext.setWarResource(webappResource);

EnvConfiguration envConfiguration = new EnvConfiguration();
envConfiguration.setJettyEnvXml(new File(config.getJettyEnvConfigPath()).toURI().toURL());
Expand Down
File renamed without changes.

0 comments on commit 1989284

Please sign in to comment.