Instrumentation of the setup/compiler: dump the complete XML data model at the end of the installation.

SVN:trunk[4759]
This commit is contained in:
Denis Flaven
2017-06-08 13:56:14 +00:00
parent befa0b4429
commit 14dfe04714
2 changed files with 21 additions and 0 deletions

View File

@@ -499,11 +499,15 @@ class ApplicationInstaller
$oFactory->LoadModule($oModule);
}
}
// Dump the "reference" model, just before loading any actual delta
$oFactory->SaveToFile(APPROOT.'data/datamodel-'.$sEnvironment.'.xml');
$sDeltaFile = APPROOT.'data/'.$sEnvironment.'.delta.xml';
if (file_exists($sDeltaFile))
{
$oDelta = new MFDeltaModule($sDeltaFile);
$oFactory->LoadModule($oDelta);
$oFactory->SaveToFile(APPROOT.'data/datamodel-'.$sEnvironment.'-with-delta.xml');
}
//$oFactory->Dump();
if ($oFactory->HasLoadErrors())