[OpenLayers-Trac] [OpenLayers] #3496: Build: Skip the required files if they are excluded.

OpenLayers trac-20090302 at openlayers.org
Mon Sep 12 18:37:23 EDT 2011


#3496: Build: Skip the required files if they are excluded.
-----------------------------------------+----------------------------------
 Reporter:  jorix                        |       Owner:              
     Type:  feature                      |      Status:  new         
 Priority:  minor                        |   Milestone:  2.12 Release
Component:  general                      |     Version:  SVN         
 Keywords:  build merge mergejs exclude  |       State:              
-----------------------------------------+----------------------------------
 There are some source files that are only required if default values are
 used, for example:

  * Using {{{new OpenLayers.Map(..., {panMethod: null, ...});}}} then
 {{{OpenLayers/Tween.js}}} is not required
  * Using {{{new OpenLayers.Control.LayerSwitcher({roundedCorner:
 false});}}} then {{{Rico/Corner.js}}} is not required

 But it is not possible to exclude these files using the {{{[exclude]}}}
 clause in the configuration files. The file is always included if file
 name is in {{{@requires}}} into an other source file.

 The patch proposes changes in mergejs.py to take into account the
 {{{[exclude]}}} clause to exclude also the required files.

-- 
Ticket URL: <http://trac.openlayers.org/ticket/3496>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer


More information about the Trac mailing list