summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/ComponentDeployer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IcePack/ComponentDeployer.cpp')
-rw-r--r--cpp/src/IcePack/ComponentDeployer.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/cpp/src/IcePack/ComponentDeployer.cpp b/cpp/src/IcePack/ComponentDeployer.cpp
index a19221e899d..e3dfefaa288 100644
--- a/cpp/src/IcePack/ComponentDeployer.cpp
+++ b/cpp/src/IcePack/ComponentDeployer.cpp
@@ -550,6 +550,20 @@ IcePack::ComponentDeployer::addOffer(const string& offer, const string& adapter,
_tasks.push_back(new RegisterOffer(yellowAdmin, offer, object));
}
+void
+IcePack::ComponentDeployer::overrideBaseDir(const string& basedir)
+{
+ if(basedir[0] == '/')
+ {
+ _variables["basedir"] = basedir;
+ }
+ else
+ {
+ _variables["basedir"] += "/" + basedir;
+ }
+}
+
+
//
// Substitute variables with their values.
//