Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7652] Tooling: Add "clean" option to titanium build scripts

GitHub Issuen/a
TypeStory
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-03-15T12:49:33.000+0000
Affected Version/sn/a
Fix Version/sRelease 2.0.0, Sprint 2012-06
ComponentsTooling
Labelstbs-2.1.0
ReporterIngo Muschenetz
AssigneeChase Culpepper
Created2012-02-14T12:20:54.000+0000
Updated2017-03-22T21:21:07.000+0000

Description

Based on ticket TISTUD-1180, it seems odd that Titanium Studio knows how to "clean" a build, especially since it doesn't know how to do the build itself. From here: https://wiki.appcelerator.org/display/guides/Titanium+Command+Line+Interface, it seems that a "titanium clean --platform=p1,p2" command (or if omitted, cleans all platforms) would be good, as then Studio does not need to internalize a very platform-specific function.

Comments

  1. Marshall Culpepper 2012-03-10

    It looks like TiStudio has address this in the IDE already since TISTUD-1180 was closed out. Moving this out of the release since it looks as though the platform support is no longer necessary. @Ingo Let me know if I'm moving this out in error
  2. Ingo Muschenetz 2012-03-10

    TiStudio can clean already, but the point for the ticket was that it was odd Studio had to know how to clean a build, when it doesn't know how to do the build itself. It feels cleaner if it tells each platform to perform the clean rather than Studio knowing to delete a specific set of folders. Once platform has this support in place, we can then replace our hack with the more proper version.
  3. Ingo Muschenetz 2012-03-11

    I do want to bring attention to this suggestion from Chris: running git clean on projects who are managed by git, rather than deleting the folders. Thoughts? TISTUD-869. We could do git clean on projects that are managed by git, and fall back to the platform behavior otherwise.
  4. Marshall Culpepper 2012-03-12

    @Ingo I agree that TiStudio shouldn't require a hack (or care about how to clean the mobile project), I mainly moved it out of 2.0.0 for priority reasons. I'll add the tbs-2.1.0 tag so we make sure to schedule this in the next release.
  5. Chase Culpepper 2012-03-14

    To test this fix, run the titanium.py script from the project folder from which you are cleaning as follows,
       titanium.py clean --platform=p1,p2
       
    And put which platform(s) that needs to be cleaned as a list to the right of the equals. You can also call it this way,
       titanium.py clean
       
    This way will clean out all platform folders.
  6. Lee Morris 2017-03-22

    Closing ticket as fixed.

JSON Source