Release Automation

  • 1.  Is the "Replace Text in File" component works as intended

    Posted Jul 19, 2016 11:57 AM

    Hi,

     

    We use the component "Replace Text in File" in CA RA 6.1.

    We want to comment a line in a file, so we search for "EXAMPLE" string and replace it by "#EXAMPLE".

    The problem is, the string "#EXAMPLE" replace the targeted string but is added at the end of the file too.

    Here's the file open with vi after the replacement:

    "

    #EXAMPLE

     

    #EXAMPLE

    ~

    ~

    ~

    ~

    ~

    ~

    ~

    ~

    "/path/to/file" [Last line is not complete] 30 lines, 1177 characters

    "

    We tried with regular expression to select the find string, same problem.

    Is there a problem with the component?

     

    Thanks and regards,

    Mikaël



  • 2.  Re: Is the "Replace Text in File" component works as intended

    Posted Jul 19, 2016 12:18 PM

    Can you verify your replace field don't include the value twice?  (Better to expend the field in order to verify/



  • 3.  Re: Is the "Replace Text in File" component works as intended
    Best Answer

    Posted Jul 25, 2016 04:11 AM

    Hi Jacky. Thanks for your response.
    Our problem was in our flow, the component works as intended.

    Resolved