Hi all,<br>I have an application that has many &quot;features&quot; (or plugins, or extensions, or bundles, or whatever, but I&#39;ll call it &quot;feature&quot; for uniqueness sake), which are subsets of the app that may or may not be bundled into the application, depending on the customer it will be shipped to. <br>
<br>What I&#39;m looking for is to have a very Eclipse-like directory structure:<br><br>MyApp/features/my_first_feature_1.0.0/root/<br>MyApp/features/my_first_feature_1.0.0/lib/Controller<br>MyApp/features/my_first_feature_1.0.0/lib/Model<br>
MyApp/features/my_first_feature_1.0.0/lib/View<br><br>MyApp/features/another_feature_1.2.0/root/<br>MyApp/features/another_feature_1.2.0/lib/Controller<br>MyApp/features/another_feature_1.2.0/lib/Model<br>MyApp/features/another_feature_1.2.0/lib/View<br>
<br>The idea is that modules contained in features should not be aware that they are in a feature, but work like they are in the default /lib or /root. <br><br>I think the /lib part can probably be setup using this: <br><br>
__PACKAGE__-&gt;config( setup_components =&gt; { search_extra =&gt; [ @features ] } );<br><br>With a little bit of code to fillup @features correctly, and some @INC tweaking... <br><br>But how about the /root part? Can mixed-up root dirs be seen as a single root dir easily?<br>
<br>cheers,<br>   rodrigo<br>