From 400b52e0955b569ab6a3d551570b8aaf369358d5 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 19 Apr 2010 06:26:18 +0000 Subject: 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 --- sca-cpp/trunk/modules/server/mod-eval.hpp | 4 ++++ 1 file changed, 4 insertions(+) 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 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("Couldn't chdir to the deployed contribution"); + // Read the components and get their implementation lambda functions const failable > comps = readComponents(sc.contributionPath + sc.compositeName); if (!hasContent(comps)) -- cgit v1.2.3