Reading an XML file doesn't work on Linux. Why?

Answered

Comments

2 comments

  • Avatar
    jesus

    Hi Felipe,

    We have tested your code and we have not been able to reproduce the issue. The xmlFileGet action is defined properly.

    Could you check if updating your Installbuilder to the latest version solve the issue? If not, can you run the installer with --debugtrace debug.txt and send us the debug.txt file to support@bitrock.com?

    0
    Comment actions Permalink
  • Avatar
    Felipe Souza

    @jesus already replied me.

    The problem was that the path to the .xml file had a '\' instead of a '/', like that:

    /home/user/installer\file.xml
    

    This happened because I am representing slashes as a variable ${os_slash} so the installer can adapt to the system it is running, like that:

    ${installer_directory}${os_slash}${xmlFile}
    

    I fixed the logic of setting the ${os_slash} variable and everything worked.

    Thank you, @jesus!

    0
    Comment actions Permalink

Please sign in to leave a comment.