@Override public void init(Enunciate enunciate) throws EnunciateException { super.init(enunciate); if (!enunciate.isModuleEnabled("jaxws")) { throw new EnunciateException("The XFire module requires an enabled JAXWS module."); } }
@Override public void init(Enunciate enunciate) throws EnunciateException { super.init(enunciate); //some application components might want to reference their documentation, so we'll put a reference to the configured docs dir. enunciate.setProperty("docs.webapp.dir", getDocsDir()); if (getJavadocTagHandling() == null) { JavaDocTagHandlerFactory.setTagHandler(new DocumentationJavaDocTagHandler()); } else if (!"OFF".equalsIgnoreCase(getJavadocTagHandling())) { try { JavaDocTagHandlerFactory.setTagHandler((JavaDocTagHandler) Class.forName(getJavadocTagHandling()).newInstance()); } catch (Throwable e) { throw new EnunciateException(e); } } }
@Override public void init(Enunciate enunciate) throws EnunciateException { super.init(enunciate);
@Override public void init(Enunciate enunciate) throws EnunciateException { super.init(enunciate); if (rpcModuleName == null) { throw new EnunciateException("You must specify a \"gwtModuleName\" for the GWT module."); } if (rpcModuleNamespace == null) { throw new EnunciateException("You must specify a \"gwtModuleName\" for the GWT module."); } if (gwtApps.size() > 0) { if (this.gwtHome == null) { throw new EnunciateException("To compile a GWT app you must specify the GWT home directory, either in configuration, by setting the GWT_HOME environment variable, or setting the 'gwt.home' system property."); } for (GWTApp gwtApp : gwtApps) { String srcPath = gwtApp.getSrcDir(); if (srcPath == null) { throw new EnunciateException("A source directory for the GWT app " + ("".equals(gwtApp.getName()) ? "" : "'" + gwtApp.getName() + "' ") + "must be supplied with the 'srcDir' attribute."); } File srcDir = enunciate.resolvePath(srcPath); if (!srcDir.exists()) { throw new EnunciateException("Source directory '" + srcDir.getAbsolutePath() + "' doesn't exist for the GWT app" + ("".equals(gwtApp.getName()) ? "." : " '" + gwtApp.getName() + "'.")); } } } }
@Override public void init(Enunciate enunciate) throws EnunciateException { super.init(enunciate);
@Override public void init(Enunciate enunciate) throws EnunciateException { super.init(enunciate); if (!isDisabled()) { if (getWebAppConfig() != null && !getWebAppConfig().getGlobalServletFilters().isEmpty()) { for (WebAppComponent globalServletFilter : getWebAppConfig().getGlobalServletFilters()) { if (globalServletFilter.getName() == null) { throw new EnunciateException("A global servlet filter (as specified in the enunciate config) requires a name."); } if (globalServletFilter.getClassname() == null) { throw new EnunciateException("A global servlet filter (as specified in the enunciate config) requires a classname."); } } } } }
@Override public void init(Enunciate enunciate) throws EnunciateException { super.init(enunciate); if (this.flexHome == null) { throw new EnunciateException("To compile a flex app you must specify the Flex SDK home directory, either in configuration, by setting the FLEX_HOME environment variable, or setting the 'flex.home' system property."); } for (FlexApp flexApp : flexApps) { if (flexApp.getName() == null) { throw new EnunciateException("A flex app must have a name."); } String srcPath = flexApp.getSrcDir(); if (srcPath == null) { throw new EnunciateException("A source directory for the flex app '" + flexApp.getName() + "' must be supplied with the 'srcDir' attribute."); } File srcDir = enunciate.resolvePath(srcPath); if (!srcDir.exists()) { throw new EnunciateException("Source directory for the flex app '" + flexApp.getName() + "' doesn't exist."); } } }
@Override public void init(Enunciate enunciate) throws EnunciateException { super.init(enunciate); if (!isDisabled()) { if (this.flexHome == null && (isSwcDownloadable() || !flexApps.isEmpty())) { throw new EnunciateException("To compile a flex app you must specify the Flex SDK home directory, either in configuration, by setting the FLEX_HOME environment variable, or setting the 'flex.home' system property."); } for (FlexApp flexApp : flexApps) { if (flexApp.getName() == null) { throw new EnunciateException("A flex app must have a name."); } String srcPath = flexApp.getSrcDir(); if (srcPath == null) { throw new EnunciateException("A source directory for the flex app '" + flexApp.getName() + "' must be supplied with the 'srcDir' attribute."); } File srcDir = enunciate.resolvePath(srcPath); if (!srcDir.exists()) { throw new EnunciateException("Source directory for the flex app '" + flexApp.getName() + "' doesn't exist."); } } } }