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

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Mon Apr 4 13:47:23 EDT 2011


Author: shawkins
Date: 2011-04-04 13:47:23 -0400 (Mon, 04 Apr 2011)
New Revision: 3056

Modified:
   trunk/runtime/src/main/java/org/teiid/deployers/VDBDeployer.java
Log:
TEIID-1445 conditionally writing the index metadata to file

Modified: trunk/runtime/src/main/java/org/teiid/deployers/VDBDeployer.java
===================================================================
--- trunk/runtime/src/main/java/org/teiid/deployers/VDBDeployer.java	2011-04-04 16:45:26 UTC (rev 3055)
+++ trunk/runtime/src/main/java/org/teiid/deployers/VDBDeployer.java	2011-04-04 17:47:23 UTC (rev 3056)
@@ -144,14 +144,15 @@
 		// add transformation metadata to the repository.
 		this.vdbRepository.addVDB(deployment, store, visibilityMap, udf, cmr);
 		
-		try {
-			saveMetadataStore((VFSDeploymentUnit)unit, deployment, store);
-		} catch (IOException e1) {
-			LogManager.logWarning(LogConstants.CTX_RUNTIME, e1, RuntimePlugin.Util.getString("vdb_save_failed", deployment.getName()+"."+deployment.getVersion())); //$NON-NLS-1$ //$NON-NLS-2$			
-		}
-			
 		boolean valid = true;
 		synchronized (deployment) {
+			if (indexFactory != null) {
+				try {
+					saveMetadataStore((VFSDeploymentUnit)unit, deployment, store);
+				} catch (IOException e1) {
+					LogManager.logWarning(LogConstants.CTX_RUNTIME, e1, RuntimePlugin.Util.getString("vdb_save_failed", deployment.getName()+"."+deployment.getVersion())); //$NON-NLS-1$ //$NON-NLS-2$			
+				}
+			}
 			if (!preview) {
 				valid = validateSources(cmr, deployment);
 				



More information about the teiid-commits mailing list