private void compile(final File bpelFile) { final BpelC bpelc = BpelC.newBpelCompiler(); // BPEL 1.1 does not suport the <import> element, so "global" WSDL needs to be configured explicitly. File bpel11wsdl = findBpel11Wsdl(bpelFile); if (bpel11wsdl != null) bpelc.setProcessWSDL(bpel11wsdl.toURI()); bpelc.setCompileProperties(prepareCompileProperties(bpelFile)); bpelc.setBaseDirectory(_duDirectory); // Create process such that immutable objects are intern'ed. InternPool.runBlock(new InternableBlock() { public void run() { try { bpelc.compile(bpelFile, getVersion()); } catch (IOException e) { __log.error("Compile error in " + bpelFile, e); } } }); }
private void compile(final File bpelFile) { final BpelC bpelc = BpelC.newBpelCompiler(); // BPEL 1.1 does not suport the <import> element, so "global" WSDL needs to be configured explicitly. File bpel11wsdl = findBpel11Wsdl(bpelFile); if (bpel11wsdl != null) { bpelc.setProcessWSDL(bpel11wsdl.toURI()); } bpelc.setCompileProperties(prepareCompileProperties(bpelFile)); bpelc.setExtensionValidators(_extensionValidators); bpelc.setBaseDirectory(_duDirectory); // Create process such that immutable objects are intern'ed. InternPool.runBlock(new InternableBlock() { public void run() { try { bpelc.compile(bpelFile, getVersion()); } catch (IOException e) { __log.error("Compile error in " + bpelFile, e); } } }); }