/** * Checking for each BPEL file if we have a corresponding compiled process. If we don't, * starts compilation. */ void compile() { List<File> bpels = FileUtils.directoryEntriesInPath(_duDirectory, DeploymentUnitDir._bpelFilter); if (bpels.size() == 0) throw new IllegalArgumentException("Directory " + _duDirectory.getName() + " does not contain any process!"); for (File bpel : bpels) { String b = bpel.getAbsolutePath(); File cbp = new File(b.substring(0,b.lastIndexOf(".bpel")) + ".cbp"); if (!cbp.exists() || cbp.lastModified() < bpel.lastModified()) { __log.debug("compiling " + bpel); compile(bpel); } else { __log.debug("skipping compilation of " + bpel + " cbp found: " + cbp); } } }
/** * Checking for each BPEL file if we have a corresponding compiled process. If we don't, * starts compilation. */ public void compile() { List<File> bpels = FileUtils.directoryEntriesInPath(_duDirectory, DeploymentUnitDir._bpelFilter); if (bpels.size() == 0) { throw new IllegalArgumentException("Directory " + _duDirectory.getName() + " does not contain any process!"); } for (File bpel : bpels) { String b = bpel.getAbsolutePath(); File cbp = new File(b.substring(0,b.lastIndexOf(".bpel")) + ".cbp"); if (!cbp.exists() || cbp.lastModified() < bpel.lastModified()) { __log.debug("compiling " + bpel); compile(bpel); } else { __log.debug("skipping compilation of " + bpel + " cbp found: " + cbp); } } }
deploymentUnitDir.compile(); } catch (CompilationException ce) { String logMessage = "Deployment failed due to compilation issues. " + ce.getMessage();
du.compile(); } catch (CompilationException ce) { String errmsg = __msgs.msgDeployFailCompileErrors(ce);
du.compile(); } catch (CompilationException ce) { String errmsg = __msgs.msgDeployFailCompileErrors(ce);