[TIMOB-7652] Tooling: Add "clean" option to titanium build scripts
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-03-15T12:49:33.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 2.0.0, Sprint 2012-06 |
Components | Tooling |
Labels | tbs-2.1.0 |
Reporter | Ingo Muschenetz |
Assignee | Chase Culpepper |
Created | 2012-02-14T12:20:54.000+0000 |
Updated | 2017-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.
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
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.
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.
@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.
To test this fix, run the titanium.py script from the project folder from which you are cleaning as follows,
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,
This way will clean out all platform folders.
Closing ticket as fixed.