[teiid-commits] teiid SVN: r2385 - trunk/runtime/src/main/java/org/teiid/deployers.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Wed Jul 28 13:06:09 EDT 2010


Author: rareddy
Date: 2010-07-28 13:06:09 -0400 (Wed, 28 Jul 2010)
New Revision: 2385

Modified:
   trunk/runtime/src/main/java/org/teiid/deployers/VDBDeployer.java
Log:
TEIID-1173: Allowing the empty VDBs to pass through for preview functionality. If the metadata strore is not available then a empty store is created.

Modified: trunk/runtime/src/main/java/org/teiid/deployers/VDBDeployer.java
===================================================================
--- trunk/runtime/src/main/java/org/teiid/deployers/VDBDeployer.java	2010-07-28 16:39:18 UTC (rev 2384)
+++ trunk/runtime/src/main/java/org/teiid/deployers/VDBDeployer.java	2010-07-28 17:06:09 UTC (rev 2385)
@@ -120,6 +120,11 @@
 			store = dynamicStore;		
 		}
 		
+		// allow empty vdbs for enabling the preview functionality
+		if (preview && store == null) {
+			store = new MetadataStoreGroup();
+		}
+		
 		if (store == null) {
 			LogManager.logError(LogConstants.CTX_RUNTIME, RuntimePlugin.Util.getString("failed_matadata_load", deployment.getName(), deployment.getVersion())); //$NON-NLS-1$
 		}



More information about the teiid-commits mailing list