Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Pre-Edits in a GlobalSettings File

Code Block
languagexml
themeConfluence
<GlobalImports>
<Storage Action="Create" Identifier="%UserFolder%\GlobalSettings" />
<Registry type="EditFile" Source="%VirtualRoot%\INCLUDES\companyUsers\companyUserPreProc.asp">
<Fix name="Pre-Edit">
    <Replace status="active" name="remove unusual use of &">
    <OldBlock><![CDATA[Variant = &0)]]></OldBlock>
    <NewBlock><![CDATA[Variant = 0)]]></NewBlock>
    </Replace>
</Fix>
</Registry>
...
</GlobalImports>

...

Post-Edits in the Author Command

Code Block
languagexml
themeConfluence
<Author...>
 
   <Author name="%MigName%">
   <Fix host="[%VirtualRoot%\includes\theFunctions.asp]">
   <Replace name="add forTemp to avoid naming conflict">
   <OldBlock><![CDATA[
          foreach(string value in arTransfer)
          {
   ]]></OldBlock>   
   <NewBlock><![CDATA[
          foreach(string forTemp in arTransfer)
          {
             value = forTemp;
   ]]></NewBlock>
   </Replace>
   </Fix>
...
</Author>

...

An example of a regex fix is shown below:

Code Block
languagexml
themeConfluence
<Author ...> 
... 
<Fix host="" name="Post-Edit">
<Replace name="correct include tag malformation" status="regex">
<OldBlock><![CDATA[runat="server" />\r\n; %>]]></OldBlock>
<NewBlock><![CDATA[runat="server" />
]]></NewBlock>
</Replace>
<Replace name="correct include tag malformation" status="regex">
<OldBlock><![CDATA[;\r\n<inc:]]></OldBlock>
<NewBlock><![CDATA[;
%>
<inc:]]></NewBlock>
</Replace>

...