14 Jun 2013 12:49 PM #1
In Sencha's code, there are some sections that are conditionally compiled; for example:
//<feature logger> ... //</feature>
How can I create my own "features" and turn them on/off? I tried "app.preprocessor.opts=logger:true,custom:false", and wrapping the code in <feature custom> tags, but it was still included.
14 Jun 2013 2:05 PM #2
I'd be interested in doing this too - I'm hoping this feature isn't just internal-only...
21 Jun 2013 6:54 AM #3
Any Sencha folks know if this is possible? Thanks.
28 Jun 2013 7:00 AM #4
OK, if anyone else is interested, I figured this out. You can define additional "features" in the Ant property "build.options". For example, if you set this in build.properties:
//<feature foo> foo //</feature> //<feature bar> bar //</feature>
Unfortunately this is yet another aspect of Sencha Cmd that's poorly documented and difficult to configure.
5 Aug 2015 6:23 PM #5
How to control the feature through ant. (build.xml )