Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3797] Tooling: Ignore files listed in tiapp.xml

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsTooling
Labelscb-tooling, core, dr-list
ReporterPedro Enrique
AssigneeEric Merriman
Created2011-04-27T17:36:02.000+0000
Updated2018-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

Comments

  1. Paul Dowsett 2011-12-02

    Reassigning, due to Reggie's absence.
  2. Chris Barber 2012-05-24

    The proposed method of listing files to ignore is not flexible and not XML-like. This would be better:
       <ignore-files>
           <file>*.tmp</file>
           <file>dist/*</file>
           <match>\.zip$</match>
       </ignore-files>
       
    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).
  3. Justin Toth 2013-06-06

    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
  4. Atticus White 2014-10-30

    This would be extremely useful, especially for those that use 3rd party javascript components that are only used in the development environments..
  5. Victor Vazquez Montero 2017-04-11

    [~fmiao] i have a user requesting this feature, would they be able to use these options now?
  6. Feon Sua Xin Miao 2017-04-11

    [~vvazquezmontero], cli.ignoreDirs and cli.ignoreFiles configuration option are available through appc ti config.

JSON Source