Forum Discussion

fireberd350's avatar
fireberd350
New Contributor
14 years ago

Managing file paths for Windows and Unix users: / vs. \

Our testers all use Windows and Devs all use Unix. When the testers write the testcases they use relative paths with Windows style backslashes, ${projectDir}\\path\\to\\file.txt , but this doesn't work when the Dev try to use our projects as require Unix style paths, ${projectDir}/path/to/file.txt. Anyone have a solution for this? I've thought about making a project level property called pathSeperator and set it to \\ for our testers and when devs checkout they can switch to /. This would require referencing the ${#Project#pathSeperator} for every directory level in every path though and that seems like an inefficient solution.
e.g. ${projectDir}${#Project#pathSeperator}path${#Project#pathSeperator}to${#Project#pathSeperator}file.txt

Thanks in advance.

1 Reply

  • Hi,

    Will you guys perform some checkins from the Linus box?
    If no then the best solution is to write a generic script which will modify the soapui project xml file data i.e. WSDL paths, hermes path...etc as per the Linux environment.

    You can integrate this script to run from soapui.sh or testrunner.sh

    Regards,
    Rohit Shingalapur