diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-12-21 18:31:55 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2011-12-21 18:31:55 +0000 |
commit | c9dc8128f14174075c170e32ea7d80198f648d9c (patch) | |
tree | 01d6da58bef89c0798c36933ae430848e20b2060 /sca-cpp/trunk/modules/scdl/scdl.hpp | |
parent | 0093665342a4d69bc017250f8494e2fd6498b73e (diff) |
Fix calculation of composite path when configured with an absolute path.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1221832 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-cpp/trunk/modules/scdl/scdl.hpp')
-rw-r--r-- | sca-cpp/trunk/modules/scdl/scdl.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sca-cpp/trunk/modules/scdl/scdl.hpp b/sca-cpp/trunk/modules/scdl/scdl.hpp index 7f6e95393e..7cf43e3b14 100644 --- a/sca-cpp/trunk/modules/scdl/scdl.hpp +++ b/sca-cpp/trunk/modules/scdl/scdl.hpp @@ -208,6 +208,13 @@ const value propertyValue(const value& l) { return elementValue(l); } +/** + * Returns the absolute path of a resource in a contribution. + */ +const string resourcePath(const string& contrib, const string& path) { + return c_str(path)[0] == '/'? path : contrib + path; +} + } } |