Forum Discussion

tim's avatar
tim
Contributor
16 years ago

Using relative paths in project files

My soapui-project.xml files have absolute paths to wsdl and xsd files. How do I change this so that only relative paths are used? or can I use some sort of properties file instead to save paths to directories?

3 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    If you set the "Resource Root" property on the project level, all relevant file paths in your project (property files, datasources, etc) will be saved relative to that path (existing ones will not be converted though, you will have to "re-configure" them).

    regards!

    /Ole
    eviware.com
  • MC's avatar
    MC
    Contributor
    Can I use a variable for the 'Resource Root' value, like ${projectDir}?
    Then all relative filename can be relative to the project root directory.
    This would be particularly useful for "composite projects". Please advise. Thanks.
  • MC's avatar
    MC
    Contributor
    Yes. Looks like this was a previously answered question.