Ticket #3496 (closed feature: fixed)
Build: Skip the required files if they are excluded.
| Reported by: | jorix | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.12 Release |
| Component: | general | Version: | SVN |
| Keywords: | build merge mergejs exclude | Cc: | |
| State: | Complete |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

