ode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mr...@apache.org
Subject svn commit: r549966 - /incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/DeploymentUnitDir.java
Date Fri, 22 Jun 2007 21:57:52 GMT
Author: mriou
Date: Fri Jun 22 14:57:52 2007
New Revision: 549966

URL: http://svn.apache.org/viewvc?view=rev&rev=549966
Log:
Deployment of empty DUs shouldn't be allowed.

Modified:
    incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/DeploymentUnitDir.java

Modified: incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/DeploymentUnitDir.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/DeploymentUnitDir.java?view=diff&rev=549966&r1=549965&r2=549966
==============================================================================
--- incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/DeploymentUnitDir.java
(original)
+++ incubator/ode/trunk/bpel-store/src/main/java/org/apache/ode/store/DeploymentUnitDir.java
Fri Jun 22 14:57:52 2007
@@ -119,6 +119,8 @@
      */
     void compile() {
         ArrayList<File> bpels = listFilesRecursively(_duDirectory, DeploymentUnitDir._bpelFilter);
+        if (bpels.size() == 0)
+            throw new IllegalArgumentException("Directory " + _duDirectory.getName() + "
does not contain any process!");
         for (File bpel : bpels) {
             compile(bpel);
         }



Mime
View raw message