aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mahrw...@apache.org
Subject svn commit: r940026 - /incubator/aries/trunk/jpa/jpa-container/src/main/java/org/apache/aries/jpa/container/impl/PersistenceBundleHelper.java
Date Sat, 01 May 2010 14:03:35 GMT
Author: mahrwald
Date: Sat May  1 14:03:35 2010
New Revision: 940026

URL: http://svn.apache.org/viewvc?rev=940026&view=rev
Log:
ARIES-301 add warning for missing persistence descriptors

Modified:
    incubator/aries/trunk/jpa/jpa-container/src/main/java/org/apache/aries/jpa/container/impl/PersistenceBundleHelper.java

Modified: incubator/aries/trunk/jpa/jpa-container/src/main/java/org/apache/aries/jpa/container/impl/PersistenceBundleHelper.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/jpa/jpa-container/src/main/java/org/apache/aries/jpa/container/impl/PersistenceBundleHelper.java?rev=940026&r1=940025&r2=940026&view=diff
==============================================================================
--- incubator/aries/trunk/jpa/jpa-container/src/main/java/org/apache/aries/jpa/container/impl/PersistenceBundleHelper.java
(original)
+++ incubator/aries/trunk/jpa/jpa-container/src/main/java/org/apache/aries/jpa/container/impl/PersistenceBundleHelper.java
Sat May  1 14:03:35 2010
@@ -113,8 +113,14 @@ public class PersistenceBundleHelper
         break;
       }     
     }
-   return persistenceXmlFiles;
- }
+    
+    if (persistenceXmlFiles.isEmpty()) {
+      _logger.warn("The bundle "+bundle.getSymbolicName() + "_" + bundle.getVersion() + "
specified the Meta-Persistence header. However, no persistence descriptors " + 
+        "could be located. The following locations were searched: " + locations.toString());
+    }
+
+    return persistenceXmlFiles;
+  }
 
   /**
    * Locate a persistence descriptor file in a bundle



Mime
View raw message