@Override public void initModel(EnunciateFreemarkerModel model) { super.initModel(model); if (!isDisabled()) { if (!gwtRtFound && !isGenerateJsonOverlays()) { info("GWT runtime wasn't found on the classpath. If you're doing GWT-RPC, you're going to fail at runtime."); } } }
if (!upToDate) { commandArray[moduleNameIndex] = moduleName; info("Executing GWTCompile for module '%s'...", moduleName); if (enunciate.isDebug()) { StringBuilder command = new StringBuilder(); String line = procReader.readLine(); while (line != null) { info(line); line = procReader.readLine(); info("Skipping GWT compile for module %s as everything appears up-to-date...", moduleName);
@Override protected void doCompile() throws EnunciateException, IOException { Enunciate enunciate = getEnunciate(); if (this.gwtApps.size() > 0) { doGWTCompile(); enunciate.addArtifact(new FileArtifact(getName(), "gwt.app.dir", getAppGenerateDir())); } if (!enunciate.isUpToDate(getClientSideGenerateDir(), getClientSideCompileDir())) { debug("Compiling the GWT client-side files..."); Collection<String> clientSideFiles = enunciate.getJavaFiles(getClientSideGenerateDir()); String clientClasspath = enunciate.getRuntimeClasspath(); if (!isDisableCompile()) { enunciate.invokeJavac(clientClasspath, "1.5", "1.5", getClientSideCompileDir(), new ArrayList<String>(), clientSideFiles.toArray(new String[clientSideFiles.size()])); } else { info("Compilation of GWT Java sources has been disabled."); } } else { info("Skipping compile of GWT client-side files because everything appears up-to-date..."); } }
@Override protected void doCompile() throws EnunciateException, IOException { Enunciate enunciate = getEnunciate(); if (this.gwtApps.size() > 0) { doGWTCompile(); enunciate.setProperty("gwt.app.dir", getAppGenerateDir()); enunciate.addArtifact(new FileArtifact(getName(), "gwt.app.dir", getAppGenerateDir())); } if (!enunciate.isUpToDate(getClientSideGenerateDir(), getClientSideCompileDir())) { info("Compiling the GWT client-side files..."); Collection<String> clientSideFiles = enunciate.getJavaFiles(getClientSideGenerateDir()); enunciate.invokeJavac(enunciate.getEnunciateClasspath(), "1.4", getClientSideCompileDir(), Arrays.asList("-g"), clientSideFiles.toArray(new String[clientSideFiles.size()])); } else { info("Skipping compile of GWT client-side files because everything appears up-to-date..."); } enunciate.setProperty("gwt.client.compile.dir", getClientSideCompileDir()); }
info("Skipping gwt-to-jaxb mappings copy because everything appears up to date!");
info("Generating the GWT endpoints..."); for (WsdlInfo wsdlInfo : model.getNamespacesToWSDLs().values()) { for (EndpointInterface ei : wsdlInfo.getEndpointInterfaces()) { info("Generating the GWT faults..."); for (WebFault webFault : allFaults) { if (!isGWTTransient(webFault)) { info("Generating the GWT types..."); for (SchemaInfo schemaInfo : model.getNamespacesToSchemas().values()) { for (TypeDefinition typeDefinition : schemaInfo.getTypeDefinitions()) { info("Generating the GWT endpoint implementations..."); for (WsdlInfo wsdlInfo : model.getNamespacesToWSDLs().values()) { for (EndpointInterface ei : wsdlInfo.getEndpointInterfaces()) { info("Generating the GWT type mappers..."); for (SchemaInfo schemaInfo : model.getNamespacesToSchemas().values()) { for (TypeDefinition typeDefinition : schemaInfo.getTypeDefinitions()) { info("Generating the GWT fault mappers..."); for (WebFault webFault : allFaults) { if (!isGWTTransient(webFault)) { info("Skipping GWT source generation as everything appears up-to-date...");
info("Skipping GWT source generation as everything appears up-to-date...");
info("GWT client jar appears up-to-date...");
info("GWT client jar appears up-to-date...");