public void run() { try { bpelc.compile(bpelFile, getVersion()); } catch (IOException e) { __log.error("Compile error in " + bpelFile, e); } } });
public void run() { try { bpelc.compile(bpelFile, getVersion()); } catch (IOException e) { __log.error("Compile error in " + bpelFile, e); } } });
/** * Compiles a BPEL process file into a compiled form CBP file in the main directory * (ie same directory as the BPEL process file) * @param bpelFile - the BPEL process file */ private void compile( File bpelFile ) { // Set up the compiler BpelC compiler = BpelC.newBpelCompiler(); // Provide a null set of initial properties for now Map<QName, Node> processProps = new HashMap<QName, Node>(); Map<String, Object> compileProps = new HashMap<String, Object>(); compileProps.put( BpelC.PROCESS_CUSTOM_PROPERTIES, processProps ); compiler.setCompileProperties( compileProps ); compiler.setBaseDirectory( getDirectory() ); // Inject any property values bpelFile = injectPropertyValues( bpelFile ); // Run the compiler and generate the CBP file into the given directory try { compiler.compile( bpelFile ); } catch (IOException e) { if(__log.isDebugEnabled()) { __log.debug("Compile error in " + bpelFile, e); } // TODO - need better exception handling here } // end try } // end compile
String cbpPath = bpelPath.substring(0, bpelPath.lastIndexOf(".")) + ".cbp"; compile(process, cbpPath, version); this.invalidate();
compiler.compile(bpelFile, BpelCompiler.getVersion(_outputDir.getAbsolutePath())); long t = System.currentTimeMillis() - start; _cc.info("Compilation completed in " + t + "ms");