Author: rr
Date: Wed Jun 16 08:27:10 2010
New Revision: 955154
URL: http://svn.apache.org/viewvc?rev=955154&view=rev
Log:
ODE-848: Changes to the BpelC.compile method breaks the API (fix thanks to
Antoine Toulme)
Modified:
ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/BpelC.java
Modified:
ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/BpelC.java
URL:
http://svn.apache.org/viewvc/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/BpelC.java?rev=955154&r1=955153&r2=955154&view=diff
==============================================================================
---
ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/BpelC.java
(original)
+++
ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/BpelC.java
Wed Jun 16 08:27:10 2010
@@ -300,6 +300,22 @@ public class BpelC {
* @throws IOException if one occurs while reading the BPEL process or
writing the
* output.
* @throws CompilationException if one occurs while compiling the process.
+ * @deprecated use compile(File bpelFile, long version) instead
+ */
+ public void compile(File bpelFile) throws CompilationException,
IOException {
+ compile(bpelFile, 0);
+ }
+
+ /**
+ * <p>
+ * Compile a BPEL process from a file. This method uses a {...@link
BpelObjectFactory}
+ * to parse the XML and then calls {...@link #compile(Process,String)}.
+ * </p>
+ * @param bpelFile the file of the BPEL process to be compiled.
+ * @param version the version of the BPEL file.
+ * @throws IOException if one occurs while reading the BPEL process or
writing the
+ * output.
+ * @throws CompilationException if one occurs while compiling the process.
*/
public void compile(File bpelFile, long version) throws
CompilationException, IOException {
if (__log.isDebugEnabled()) {