N°5563 Convert datamodels files with new 3.1 conversion methods

This commit is contained in:
Pierre Goiffon
2022-11-18 19:00:07 +01:00
parent 3aab49c372
commit 6258b97b92
30 changed files with 17641 additions and 17509 deletions

View File

@@ -7,6 +7,8 @@
*
* datamodels/2.x/.../datamodel.*.xml
*
* Warning : this will NOT update the XML structure (iTopDesignFormat convert methods)
*
* Usage :
* `php .make\release\update-xml.php "1.7"`
*

View File

@@ -174,6 +174,7 @@ class DatamodelsXmlFiles extends AbstractGlobFileVersionUpdater
*/
public function UpdateFileContent($sVersionLabel, $sFileContent, $sFileFullPath)
{
//TODO should also CONVERT files !
return preg_replace(
'/(<itop_design .* version=")[^"]+(">)/',
'${1}'.$sVersionLabel.'${2}',