Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2662] android SDK > 1.5.0 "Compiling Javascript Resources" each time

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-11-11T19:10:17.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 21, 2013 Sprint 21 Core
ComponentsAndroid, Tooling
Labelsandroid, androidbuild, ay-verified, cb-verified, compile, defect, reported-1.5.0, sdk
ReporterStephane
AssigneeChris Barber
Created2011-04-15T03:26:19.000+0000
Updated2013-11-16T00:57:19.000+0000

Description

With SDK older than 1.5.0, when Ti developer "Launch" button is clicked, application is immediately displaying in the emulator:
[INFO] Building test for Android ... one moment
[INFO] Copying project resources..
[INFO] Tiapp.xml unchanged, skipping class generation
[INFO] Manifest unchanged, skipping Java build
[INFO] Re-launching application ... test 
[INFO] Relaunched test ... Application should be running.
With 1.5.0 & 1.5.1 each time I get a "compiling Android Resources":
[INFO] Building test for Android ... one moment
[INFO] Titanium SDK version: 1.5.1 (12/16/10 16:25 16bbb92)
[INFO] Copying project resources..
[INFO] Tiapp.xml unchanged, skipping class generation
[INFO] Compiling Javascript Resources ...
[INFO] Compiling Android Resources... This could take some time

Comments

  1. Stephane 2011-04-15

    i've done a pastie for :

    1.2 SDK TRACE : http://pastie.org/1465943">http://pastie.org/1465943

    1.5.1 SDK TRACE : http://pastie.org/1465947">http://pastie.org/1465947

    this is the default app those traces are the second click (not first build)

    1.5.1 is doing a bunch of other thing even if files aren't modified

  2. Stephane 2011-04-15

    I had a quick (& first time) look at builder.py : in 1.5.1 it looks like generated_classes_built (line 1378) is always set to true, changing it to False by-pass the compilation.(what a time saving!)

    in 1.2.0 there was this test :

               generated_classes_built = False
               if manifest_changed or tiapp_changed or self.deploy_type == "production":
                   self.build_generated_classes()
                   generated_classes_built = True
               else:
                   print "[INFO] Manifest unchanged, skipping Java build"
       

    but it does not enter elif (line 1447) to print message : info("Re-launching application ... %s" % self.name)

  3. Stephane 2011-04-15

    The "not entering elif on line 1447" matter is a problem with the if "not self.sdcard_copy" (line 1439)

    removing it leads to :

    [INFO] Re-launching application ... Project name [INFO] Relaunched Project Name ... Application should be running.

    BUT modificatons on files are not seen (for example changing a text in a file isn't pushed on the Simulator)

  4. Allen Yeung 2013-10-19

    PR: https://github.com/appcelerator/titanium_mobile/pull/4781

JSON Source