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$
}
Show replies by date