Added version options to JCB, also changed JCB version option to only first 2 numbers. This should help cut down on the commit changes to JCB on each compilation.

This commit is contained in:
2017-11-06 16:04:23 +02:00
parent 9e6c93a51e
commit fe3f32c6e7
772 changed files with 3186 additions and 3136 deletions

View File

@ -118,6 +118,27 @@ class Infusion extends Interpretation
// ###VERSION###
$this->fileContentStatic['###VERSION###'] = trim($this->componentData->component_version);
// set the actual global version
$this->fileContentStatic['###ACTUALVERSION###'] = $this->fileContentStatic['###VERSION###'];
// do some Tweaks to the version based on selected options
if (strpos($this->fileContentStatic['###VERSION###'], '.') !== false)
{
$versionArray = explode('.', $this->fileContentStatic['###VERSION###']);
}
// load only first two values
if (isset($versionArray) && ComponentbuilderHelper::checkArray($versionArray) && $this->componentData->mvc_versiondate == 2)
{
$this->fileContentStatic['###VERSION###'] = $versionArray[0] . '.' . $versionArray[1] . '.x';
}
// load only the first value
elseif (isset($versionArray) && ComponentbuilderHelper::checkArray($versionArray) && $this->componentData->mvc_versiondate == 3)
{
$this->fileContentStatic['###VERSION###'] = $versionArray[0]. '.x.x';
}
unset($versionArray);
// set the global version in case
$this->fileContentStatic['###VERSION###GLOBAL'] = $this->fileContentStatic['###VERSION###'];
// ###Component_name###