@Override protected EnunciateConfiguration createEnunciateConfiguration() { EnunciateConfiguration config = super.createEnunciateConfiguration(); WebAppConfig webAppConfig = config.getWebAppConfig(); if (webAppConfig == null) { webAppConfig = new WebAppConfig(); config.setWebAppConfig(webAppConfig); } webAppConfig.setDisabled(true); return config; }
@Override protected void postProcessConfig(EnunciateConfiguration config) { super.postProcessConfig(config); WebAppConfig webAppConfig = config.getWebAppConfig(); if (webAppConfig == null) { webAppConfig = new WebAppConfig(); config.setWebAppConfig(webAppConfig); } webAppConfig.setDoCompile(false); webAppConfig.setDoLibCopy(false); webAppConfig.setDoPackage(false); webAppConfig.setDir(new File(webappDirectory).getAbsolutePath()); }
public WebAppConfig getWebAppConfig() { return (getEnunciate() != null && getEnunciate().getConfig() != null) ? getEnunciate().getConfig().getWebAppConfig() : null; }