Beispiel #1
0
//error_reporting(0);
$confObj = uiConfDeployment::init($arguments['ini']);
// get and read the config file
uiConfDeployment::checkArguments($arguments);
uiConfDeployment::$baseTag = $confObj->general->component->name;
// gets the application name for the default tags
uiConfDeployment::$defaultTags = "autodeploy, " . uiConfDeployment::$baseTag . "_" . $confObj->general->component->version;
// create the uiConf default tags (for ui confs of the application)
uiConfDeployment::$partnerId = $arguments['partner'];
if ($includeCode) {
    $code = uiConfDeploymentCodeGenerator::generateCode();
}
uiConfDeployment::deprecateOldUiConfs(uiConfDeployment::$defaultTags);
//deploy all the ui confs
uiConfDeployment::deploy($confObj);
uiConfDeployment::setTemplatePartner();
if ($includeCode) {
    foreach (uiConfDeployment::$tags_search as $tag) {
        $code[] = '$this->' . uiConfDeployment::$baseTag . '_uiconfs_' . $tag . ' = $this->' . uiConfDeploymentCodeGenerator::SEARCH_BY_TAG_FUNCTION_NAME . '("' . uiConfDeployment::$baseTag . '_' . $tag . '");';
    }
    echo PHP_EOL . '// code for KMC wrapper' . PHP_EOL;
    $code[] = uiConfDeploymentCodeGenerator::addSearchConfByTag();
    echo implode(PHP_EOL, $code);
}
echo "Deployed successfully\n";
exit(0);
/**
 *
 * Used to deploy the ui confs
 * @author Roni
 *