/** * The generate dir for the specified app. * * @param appName The app name. * @return The generate dir for the specified app. */ protected File getAppGenerateDir(String appName) { File appsDir = getAppGenerateDir(); if ("".equals(appName)) { return appsDir; } else { return new File(appsDir, appName); } }
/** * The generate dir for the specified app. * * @param appName The app name. * @return The generate dir for the specified app. */ protected File getAppGenerateDir(String appName) { File appsDir = getAppGenerateDir(); if ("".equals(appName)) { return appsDir; } else { return new File(appsDir, appName); } }
File appSource = enunciate.resolvePath(gwtApp.getSrcDir()); String style = gwtApp.getJavascriptStyle().toString(); File appDir = getAppGenerateDir(appName);
File appSource = enunciate.resolvePath(gwtApp.getSrcDir()); String style = gwtApp.getJavascriptStyle().toString(); File appDir = getAppGenerateDir(appName); String out = appDir.getAbsolutePath();
@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()); }
webappDir.mkdirs(); File gwtCompileDir = getAppGenerateDir(); if ((this.gwtApps.size() > 0) && (gwtCompileDir != null) && (gwtCompileDir.exists())) { File gwtAppDir = webappDir;
@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..."); } }