You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2010/04/19 08:26:18 UTC

svn commit: r935458 - /tuscany/sca-cpp/trunk/modules/server/mod-eval.hpp

Author: jsdelfino
Date: Mon Apr 19 06:26:18 2010
New Revision: 935458

URL: http://svn.apache.org/viewvc?rev=935458&view=rev
Log:
Chdir to the installed SCA contribution before configuring components.

Modified:
    tuscany/sca-cpp/trunk/modules/server/mod-eval.hpp

Modified: tuscany/sca-cpp/trunk/modules/server/mod-eval.hpp
URL: http://svn.apache.org/viewvc/tuscany/sca-cpp/trunk/modules/server/mod-eval.hpp?rev=935458&r1=935457&r2=935458&view=diff
==============================================================================
--- tuscany/sca-cpp/trunk/modules/server/mod-eval.hpp (original)
+++ tuscany/sca-cpp/trunk/modules/server/mod-eval.hpp Mon Apr 19 06:26:18 2010
@@ -388,6 +388,10 @@ const failable<bool> confComponents(Serv
     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))