/** * Do the package logic. */ protected void doPackage() throws IOException, EnunciateException { File packageDir = getPackageDir(); if (packageDir == null) { packageDir = createTempDir(); debug("No package directory specified, assigned %s.", packageDir); setPackageDir(packageDir); } if (packageDir.equals(getBuildDir())) { throw new EnunciateException("The package output directory cannot be the same as the build directory. " + "(BTW, if you don't specify a package output directory, a suitable temp directory wil be created for you.)"); } for (DeploymentModule deploymentModule : this.config.getAllModules()) { if (!deploymentModule.isDisabled()) { debug("Invoking %s step for module %s", Target.PACKAGE, deploymentModule.getName()); if (deploymentModule instanceof FacetAware) { setupFacetFilter((FacetAware) deploymentModule); } deploymentModule.step(Target.PACKAGE); FacetFilter.clear(); } else { debug("Not invoking %s step for module %s (module is disabled).", Target.PACKAGE, deploymentModule.getName()); } } }
/** * Do the build logic. */ protected void doBuild() throws IOException, EnunciateException { File buildDir = getBuildDir(); if (buildDir == null) { buildDir = createTempDir(); debug("No build directory specified, assigned %s.", buildDir); setBuildDir(buildDir); } if (buildDir.equals(getCompileDir())) { throw new EnunciateException("The build output directory cannot be the same as the compile directory. " + "(BTW, if you don't specify a build output directory, a suitable temp directory wil be created for you.)"); } for (DeploymentModule deploymentModule : this.config.getAllModules()) { if (!deploymentModule.isDisabled()) { debug("Invoking %s step for module %s", Target.BUILD, deploymentModule.getName()); if (deploymentModule instanceof FacetAware) { setupFacetFilter((FacetAware) deploymentModule); } deploymentModule.step(Target.BUILD); FacetFilter.clear(); } else { debug("Not invoking %s step for module %s (module is disabled).", Target.BUILD, deploymentModule.getName()); } } }
/** * Do the compile logic. */ protected void doCompile() throws IOException, EnunciateException { File destdir = getCompileDir(); if (destdir == null) { destdir = createTempDir(); debug("No compile directory specified, assigned %s.", destdir); setCompileDir(destdir); } if (compileDir.equals(getBuildDir())) { throw new EnunciateException("The compile output directory cannot be the same as the generate directory. " + "(BTW, if you don't specify a compile output directory, a suitable temp directory wil be created for you.)"); } for (DeploymentModule deploymentModule : this.config.getAllModules()) { if (!deploymentModule.isDisabled()) { debug("Invoking %s step for module %s", Target.COMPILE, deploymentModule.getName()); if (deploymentModule instanceof FacetAware) { setupFacetFilter((FacetAware) deploymentModule); } deploymentModule.step(Target.COMPILE); FacetFilter.clear(); } else { debug("Not invoking %s step for module %s (module is disabled).", Target.COMPILE, deploymentModule.getName()); } } }
FacetFilter.clear();