summaryrefslogtreecommitdiffstats
path: root/sca-cpp
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-04-19 06:26:18 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-04-19 06:26:18 +0000
commit400b52e0955b569ab6a3d551570b8aaf369358d5 (patch)
treecc16c9b4a8231adcb93ee8ef5ebbccd20bf60bc7 /sca-cpp
parentba2d8cea6369ac5a1fbe4fdcfc1e73b4722084ee (diff)
Chdir to the installed SCA contribution before configuring components.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@935458 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sca-cpp/trunk/modules/server/mod-eval.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sca-cpp/trunk/modules/server/mod-eval.hpp b/sca-cpp/trunk/modules/server/mod-eval.hpp
index 5ce787d2fb..e69e9c6f13 100644
--- a/sca-cpp/trunk/modules/server/mod-eval.hpp
+++ b/sca-cpp/trunk/modules/server/mod-eval.hpp
@@ -388,6 +388,10 @@ const failable<bool> confComponents(ServerConf& sc, server_rec& server) {
if (sc.contributionPath == "" || sc.compositeName == "")
return false;
+ // Chdir to the deployed contribution
+ if (chdir(c_str(sc.contributionPath)) != 0)
+ return mkfailure<bool>("Couldn't chdir to the deployed contribution");
+
// Read the components and get their implementation lambda functions
const failable<list<value> > comps = readComponents(sc.contributionPath + sc.compositeName);
if (!hasContent(comps))