Allow additional javascript feature directories e.g. in the extras folder
-------------------------------------------------------------------------
Key: SHINDIG-1386
URL: https://issues.apache.org/jira/browse/SHINDIG-1386
Project: Shindig
Issue Type: New Feature
Components: PHP
Reporter: Bastian Hofmann
Index: php/config/container.php
===================================================================
117c117,120
< 'features_path' => realpath(dirname(__FILE__) .
'/../../features/src/main/javascript/features') . '/',
---
> 'features_path' => array(
> realpath(dirname(__FILE__) .
> '/../../features/src/main/javascript/features') . '/',
> realpath(dirname(__FILE__) .
> '/../../extras/src/main/javascript/features-extras') . '/',
> ),
Index: php/src/gadgets/GadgetFeatureRegistry.php
===================================================================
28,30c28,29
< public $features;
< private $coreDone = false;
< private $coreFeaturs;
---
> public $features = array();
> private $coreFeatures;
33a33,37
> if (is_array($featurePath)) {
> foreach ($featurePath as $path) {
> $this->registerFeatures($path);
> }
> } else {
36a41,43
> $this->processFeatures();
> }
>
137d143
< $this->features = array();
151a158,163
> }
>
> /**
> * gets core features and sorts features
> */
> private function processFeatures() {
Also in the existing features-extras directory the features.txt has to wrong
path to the feature.xml:
Index: extras/src/main/javascript/features-extras/features.txt
===================================================================
19c19
< features/org.jquery.core-1.4.2/feature.xml
---
> features-extras/org.jquery.core-1.4.2/feature.xml
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.