Menu

relative paths in .xml config files

2016-03-16
2016-03-19
  • Birgit Feld

    Birgit Feld - 2016-03-16

    Hi Stefan,

    I'm creating a set of sequences and scripts that will be used by several
    developers and on different operating system. Thus I would like to use
    only relative paths in the initialSequence.xml, initialSettings.xml and
    initalScripts.xml files. Unfortunately, with win7 I was not successfull
    to locate the worker scripts with relative paths.

    Furthermore I noticed, that the file names had an extra "t" when they
    were created by the program: initital...

    Thanks for your help,
    Best Regards,
    Birgit

     
  • Stefan Zieker

    Stefan Zieker - 2016-03-16

    Hi Birgit,

    I think this should be no problem. My solution would be:
    - if a file has the same root path like the main config file (on windows for example C:) then ScriptCommunicator will automatically save it as a relative path
    - if ScriptCommunicator detects a relative path in a config file then this path will be converted to an absolute path before doing something with it

    And thx for pointing me out that some file names are not correct.

    PS: I think I will implement it this weekend and upload a prerelease for you. Which platforms do you need?

    Best regards,
    Stefan

     

    Last edit: Stefan Zieker 2016-03-16
  • Stefan Zieker

    Stefan Zieker - 2016-03-19

    Hi Birgit.

    I have released a new version of ScriptCommunicator which stores file paths in the configuration files relative to the configuration file in which they occur if they have the same root path (on windows for example C:).

    PS: If you don't have '<fileInfo hasBeenSaved="1"/>' (is added by the current version of ScriptCommunicator automatically) in your created/old script and sequence configurarion files the '.\' in front of a file name is interpreted as the ScriptCommunicator executable path and not as the path of the configurarion file (backwards compatibility).

    Best regards,
    Stefan

     

    Last edit: Stefan Zieker 2016-03-20

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.