[TIMOB-3797] Tooling: Ignore files listed in tiapp.xml
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | High |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Tooling |
| Labels | cb-tooling, core, dr-list |
| Reporter | Pedro Enrique |
| Assignee | Eric Merriman |
| Created | 2011-04-27T17:36:02.000+0000 |
| Updated | 2018-08-02T17:31:41.000+0000 |
Description
This is a feature request to be able to add a list of files to be ignored on build time.
Let me quote the helpdesk ticket asking for this:
There are certain files that exist in my project that I would like to always ignore when building the application. Occasionally I will use winmerge and it will generate a backup file or occasionally temp files remain in my resources folder.
Because of this I have to go through and clean the folder of files I don't want included when the application is built. It would be nice if within the tiapp.xml file there could be a section like:
<ignore-files>tmp, bak, zip, txt</ignore-files>
Helpdesk ticket:
http://support.appcelerator.com/tickets/CVP-59987-843/homepage
Reassigning, due to Reggie's absence.
The proposed method of listing files to ignore is not flexible and not XML-like. This would be better:
Each file should be a separate XML entity. Furthermore, I think there should be two ways of doing this: the standard wildcard syntax (file) and regular expressions (match).<ignore-files> <file>*.tmp</file> <file>dist/*</file> <match>\.zip$</match> </ignore-files>This is sorely needed. I just added a mercurial/hg sub repository to my project, which adds a .hg folder into resources, so now Android won't build: [ERROR] /Users/justin/Documents/WorkPlan/Resources/lib/common/.hg/store/data/_common_modules.js.i is an invalid filename. Android will not package assets whose filenames start with underscores. Fix and rebuild. [ERROR] : Build process exited with code 1 [ERROR] : Project failed to build after 467ms
This would be extremely useful, especially for those that use 3rd party javascript components that are only used in the development environments..
[~fmiao] i have a user requesting this feature, would they be able to use these options now?
[~vvazquezmontero],
cli.ignoreDirsandcli.ignoreFilesconfiguration option are available throughappc ti config.