*/
void Application::DeclarePrefixDir(const String& path)
{
- ScriptGlobal::Set("PrefixDir", path);
+ if (!ScriptGlobal::Exists("PrefixDir"))
+ ScriptGlobal::Set("PrefixDir", path);
}
/**
*/
void Application::DeclareSysconfDir(const String& path)
{
- ScriptGlobal::Set("SysconfDir", path);
+ if (!ScriptGlobal::Exists("SysconfDir"))
+ ScriptGlobal::Set("SysconfDir", path);
}
/**
*/
void Application::DeclareRunDir(const String& path)
{
- ScriptGlobal::Set("RunDir", path);
+ if (!ScriptGlobal::Exists("RunDir"))
+ ScriptGlobal::Set("RunDir", path);
}
/**
*/
void Application::DeclareLocalStateDir(const String& path)
{
- ScriptGlobal::Set("LocalStateDir", path);
+ if (!ScriptGlobal::Exists("LocalStateDir"))
+ ScriptGlobal::Set("LocalStateDir", path);
}
/**
*/
void Application::DeclareZonesDir(const String& path)
{
- ScriptGlobal::Set("ZonesDir", path);
+ if (!ScriptGlobal::Exists("ZonesDir"))
+ ScriptGlobal::Set("ZonesDir", path);
}
/**
*/
void Application::DeclarePkgDataDir(const String& path)
{
- ScriptGlobal::Set("PkgDataDir", path);
+ if (!ScriptGlobal::Exists("PkgDataDir"))
+ ScriptGlobal::Set("PkgDataDir", path);
}
/**
*/
void Application::DeclareIncludeConfDir(const String& path)
{
- ScriptGlobal::Set("IncludeConfDir", path);
+ if (!ScriptGlobal::Exists("IncludeConfDir"))
+ ScriptGlobal::Set("IncludeConfDir", path);
}
/**
*/
void Application::DeclareStatePath(const String& path)
{
- ScriptGlobal::Set("StatePath", path);
+ if (!ScriptGlobal::Exists("StatePath"))
+ ScriptGlobal::Set("StatePath", path);
}
/**
*/
void Application::DeclareObjectsPath(const String& path)
{
- ScriptGlobal::Set("ObjectsPath", path);
+ if (!ScriptGlobal::Exists("ObjectsPath"))
+ ScriptGlobal::Set("ObjectsPath", path);
}
/**
*/
void Application::DeclareVarsPath(const String& path)
{
- ScriptGlobal::Set("VarsPath", path);
+ if (!ScriptGlobal::Exists("VarsPath"))
+ ScriptGlobal::Set("VarsPath", path);
}
/**
*/
void Application::DeclarePidPath(const String& path)
{
- ScriptGlobal::Set("PidPath", path);
+ if (!ScriptGlobal::Exists("PidPath"))
+ ScriptGlobal::Set("PidPath", path);
}
/**
*/
void Application::DeclareApplicationType(const String& type)
{
- ScriptGlobal::Set("ApplicationType", type);
+ if (!ScriptGlobal::Exists("ApplicationType"))
+ ScriptGlobal::Set("ApplicationType", type);
}
/**
*/
void Application::DeclareRunAsUser(const String& user)
{
- ScriptGlobal::Set("RunAsUser", user);
+ if (!ScriptGlobal::Exists("RunAsUser"))
+ ScriptGlobal::Set("RunAsUser", user);
}
/**
*/
void Application::DeclareConcurrency(int ncpus)
{
- ScriptGlobal::Set("Concurrency", ncpus);
+ if (!ScriptGlobal::Exists("Concurrency"))
+ ScriptGlobal::Set("Concurrency", ncpus);
}
/**
*/
void Application::DeclareRunAsGroup(const String& group)
{
- ScriptGlobal::Set("RunAsGroup", group);
+ if (!ScriptGlobal::Exists("RunAsGroup"))
+ ScriptGlobal::Set("RunAsGroup", group);
}
/**