Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20085] Windows: ti clean should cleanup VS temporary build directory

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-03-25T14:04:00.000+0000
Affected Version/sRelease 5.1.0
Fix Version/sRelease 5.3.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2015-12-02T12:45:36.000+0000
Updated2016-04-20T21:06:12.000+0000

Description

I see that appc ti clean and ti clean command clean up build directory under your project, but it should have cleaned up VS project temporary build directory (C:\Users\USERNAME\.titanium\vsbuild\YOUR_PROJECT_NAME too.

Comments

  1. Kota Iguchi 2015-12-15

    https://github.com/appcelerator/titanium_mobile_windows/pull/505
  2. Ewan Harris 2016-03-22

    [~cwilliams] [~kota] this needs https://github.com/appcelerator/titanium_mobile/pull/7628 to be backported to 5_3_X Also, I decided to check out master to just check it out the CLI does not appear to be cleaning the temporary build directory, I don't see any logging informing me of the deletion as seen in the code and also the folder is still present. I am using SDK version 5.4.0.v20160322115854
       C:\Users\ewanh\Documents\Appcelerator_Studio_Workspace\preProdAlloy>appc ti clean
       Appcelerator Command-Line Interface, version 5.2.1-20
       Copyright (c) 2014-2016, Appcelerator, Inc.  All Rights Reserved.
       
       Preproduction Environment Active
       
       [DEBUG] Detecting plugins in C:\Users\ewanh\Documents\Appcelerator_Studio_Workspace\preProdAlloy\plugins
       [DEBUG] Detected plugin: ti.alloy @ C:\Users\ewanh\Documents\Appcelerator_Studio_Workspace\preProdAlloy\plugins\ti.alloy
       [DEBUG] Detecting plugins in C:\ProgramData\Titanium\plugins
       [DEBUG] Detected plugin: com.appcelerator.test @ C:\ProgramData\Titanium\plugins\com.appcelerator.test
       [DEBUG] Detecting plugins in C:\ProgramData\Application Data\Titanium\plugins
       [DEBUG] Detected plugin: com.appcelerator.test @ C:\ProgramData\Application Data\Titanium\plugins\com.appcelerator.test
       [DEBUG] Looking for Titanium plugin id=ti.alloy version=1.0
       [INFO]  Found Titanium plugin id=ti.alloy version=1.0
       [DEBUG] Deleting all platform build directories
       [DEBUG] Deleting C:\Users\ewanh\Documents\Appcelerator_Studio_Workspace\preProdAlloy\build\.alloynewcli
       [DEBUG] Deleting C:\Users\ewanh\Documents\Appcelerator_Studio_Workspace\preProdAlloy\build\alloy
       [DEBUG] Deleting C:\Users\ewanh\Documents\Appcelerator_Studio_Workspace\preProdAlloy\build\build_windows.log
       [DEBUG] Deleting C:\Users\ewanh\Documents\Appcelerator_Studio_Workspace\preProdAlloy\build\map
       [DEBUG] Deleting C:\Users\ewanh\Documents\Appcelerator_Studio_Workspace\preProdAlloy\build\windows
       [DEBUG] Resources directory of C:\Users\ewanh\Documents\Appcelerator_Studio_Workspace\preProdAlloy\app has been emptied
       
       C:\Users\ewanh\Documents\Appcelerator_Studio_Workspace\preProdAlloy>ls C:\Users\ewanh\.titanium\vsbuild\preProdAlloy
       Assets              Package.phone.appxmanifest.in      Package.win10.appxmanifest.in      TemporaryKey.pfx     include                    win10.ARM
       CMakeLists.txt      Package.phone.appxmanifest.in.ejs  Package.win10.appxmanifest.in.ejs  alloy_generated      lib
       CMakeLists.txt.ejs  Package.store.appxmanifest.in      Resources.resw                     build-manifest.json  src
       Native              Package.store.appxmanifest.in.ejs  Strings                            cmake                titanium_settings.ini.ejs
       
  3. Kota Iguchi 2016-03-23

    I need to revisit this. Re-opening...
  4. Kota Iguchi 2016-03-23

    Found out that alloy prevents from running platform-specific clean hook. https://github.com/appcelerator/alloy/pull/772 Note: This needs https://github.com/appcelerator/titanium_mobile/pull/7628 to be backported to 5_3_X
  5. Christopher Williams 2016-03-25

    Cherry-picked the fix for titanium_mobile over to 5_3_X branch and merged the fix for Alloy.
  6. Ewan Harris 2016-04-20

    Verified using: Windows 10 Pro Visual Studio 2015 Community Update 2 Appc Core: 5.3.0-26 Appc NPM: 4.2.5-3 Ti SDK: 5.3.0.v20160420090405 When running appc ti clean on both a classic and alloy project, both the local build directory and the build directory in .titanium\vsbuild are deleted Closing ticket

JSON Source