HOR-3005
This commit is contained in:
37
build.php
37
build.php
@@ -1,37 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* Process Maker Php Build tool v. 0.3.1
|
|
||||||
* Rev. 05-27-2016
|
|
||||||
*
|
|
||||||
* Use this as an external tool for Phpstorm
|
|
||||||
* Configure as it follows:
|
|
||||||
*
|
|
||||||
* Name: PM php Builder
|
|
||||||
* Group: Process Maker
|
|
||||||
* Description: Process Maker Php Builder.
|
|
||||||
* Tools Settings
|
|
||||||
* Program: $PhpExecutable$
|
|
||||||
* Parameters:
|
|
||||||
* build.php --base_dir=$ProjectFileDir$ --mode=prod --extension
|
|
||||||
* --extensionDir=$ProjectFileDir$/workflow/engine/plugins
|
|
||||||
* Working Directory: $ProjectFileDir$
|
|
||||||
* Please, notice you can change --extensionDir to your own extension folder.
|
|
||||||
*
|
|
||||||
* Also, use the respective directory owner permisions:
|
|
||||||
* ~/processmaker$ sudo chown -R www-data:www-data workflow/public_html/
|
|
||||||
* ~/processmaker$ sudo chown -R www-data:www-data vendor/colosa/MichelangeloFE/build
|
|
||||||
*
|
|
||||||
* Use a shortcut:
|
|
||||||
*
|
|
||||||
* Go to Settings -> Appearance & Behavior -> Keymap, search for ProcessMaker, open the context
|
|
||||||
* menu of the option and select Add Keyboard Shortcut, use whatever shortcut you want, for example Alt+b
|
|
||||||
*
|
|
||||||
* If you need help: php build.php --help
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
include_once('class.Build.php');
|
|
||||||
use Build\Utils\ProcessMakerPhpBuilderHelper;
|
|
||||||
|
|
||||||
$phpBuilder = new ProcessMakerPhpBuilderHelper();
|
|
||||||
$phpBuilder->utils->echoContent("Config finished, start deploying...");
|
|
||||||
$phpBuilder->buildAll();
|
|
||||||
1490
class.Build.php
1490
class.Build.php
File diff suppressed because it is too large
Load Diff
@@ -1900,22 +1900,6 @@ class PMPluginRegistry
|
|||||||
str_replace(["\n", "\r", "\t"], ' ', file_get_contents($path . $pluginFile))
|
str_replace(["\n", "\r", "\t"], ' ', file_get_contents($path . $pluginFile))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Use this for extensions
|
|
||||||
*
|
|
||||||
* @return array with namespace and plugin folder
|
|
||||||
*/
|
|
||||||
public function getEnabledPlugins()
|
|
||||||
{
|
|
||||||
$enabledPlugins = array();
|
|
||||||
foreach ($this->_aPluginDetails as $row) {
|
|
||||||
if ($row->enabled) {
|
|
||||||
$enabledPlugins[$row->sNamespace] = $row->sPluginFolder;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $enabledPlugins;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Registry in an array routes for js or css files.
|
* Registry in an array routes for js or css files.
|
||||||
|
|||||||
@@ -21,8 +21,6 @@
|
|||||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||||
*/
|
*/
|
||||||
include_once (PATH_TRUNK."/class.Build.php");
|
|
||||||
use Build\Utils\ProcessMakerPhpBuilderHelper;
|
|
||||||
|
|
||||||
// lets display the items
|
// lets display the items
|
||||||
$pluginFile = $_GET['id'];
|
$pluginFile = $_GET['id'];
|
||||||
@@ -88,16 +86,6 @@ if ($handle = opendir( PATH_PLUGINS )) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
closedir( $handle );
|
closedir( $handle );
|
||||||
|
|
||||||
/**
|
|
||||||
* Calls PMExtensionClass Builder to include Plugins changes.
|
|
||||||
*/
|
|
||||||
$phpBuilder = new ProcessMakerPhpBuilderHelper();
|
|
||||||
$phpBuilder->enabledExtensions = $oPluginRegistry->getEnabledPlugins();
|
|
||||||
if (!empty($phpBuilder->enabledExtensions)) {
|
|
||||||
$phpBuilder->extension = true;
|
|
||||||
}
|
|
||||||
$phpBuilder->buildAll();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//$oPluginRegistry->showArrays();
|
//$oPluginRegistry->showArrays();
|
||||||
|
|||||||
Reference in New Issue
Block a user