public List<File> getProjectSources() { List<File> projectSources = new ArrayList<File>(); projectSources.add(getClientSideGenerateDir()); projectSources.add(getServerSideGenerateDir()); for (GWTApp gwtApp : getGwtApps()) { File srcDir = getEnunciate().resolvePath(gwtApp.getSrcDir()); projectSources.add(srcDir); } return projectSources; }
getEnunciate().addArtifact(new FileArtifact(getName(), scriptArtifactId.toString(), shellFile));
if (matcher.find()) { String gwtVersionStr = matcher.group(); if (getEnunciate().isDebug()) { getEnunciate().debug("Targeting GWT version %s according to %s.", gwtVersionStr, (this.gwtHome + File.separatorChar + "about.txt")); getEnunciate().warn("Invalid GWT version %s according to %s.", gwtVersionStr, (this.gwtHome + File.separatorChar + "about.txt")); getEnunciate().warn("Unable to determine GWT version from %s.", (this.gwtHome + File.separatorChar + "about.txt"));
gwtAppDir = new File(webappDir, getGwtAppDir()); getEnunciate().copyDir(gwtCompileDir, gwtAppDir, new File(gwtCompileDir, ".gwt-tmp")); getEnunciate().addWebAppFragment(webAppFragment);
@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()); }
protected void buildClientJar() throws IOException, EnunciateException { Enunciate enunciate = getEnunciate(); String clientJarName = getClientJarName();
@Override protected void doBuild() throws EnunciateException, IOException { Enunciate enunciate = getEnunciate(); String clientJarName = getClientJarName();