{ "id": "63294", "key": "TIMOB-2662", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "15699", "description": "2013 Sprint 21", "name": "2013 Sprint 21", "archived": true, "released": true, "releaseDate": "2013-10-18" }, { "id": "15701", "description": "2013 Sprint 21 Core", "name": "2013 Sprint 21 Core", "archived": true, "released": true, "releaseDate": "2013-10-18" } ], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-11-11T19:10:17.000+0000", "created": "2011-04-15T03:26:19.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [ "android", "androidbuild", "ay-verified", "cb-verified", "compile", "defect", "reported-1.5.0", "sdk" ], "versions": [], "issuelinks": [ { "id": "31405", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "119161", "key": "TIMOB-14977", "fields": { "summary": "Android Build: Compile resources", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2013-11-16T00:57:19.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10207", "name": "Tooling" } ], "description": "With SDK older than 1.5.0, when Ti developer \"Launch\" button is clicked, application is immediately displaying in the emulator:\r\n\r\n{code}\r\n[INFO] Building test for Android ... one moment\r\n[INFO] Copying project resources..\r\n[INFO] Tiapp.xml unchanged, skipping class generation\r\n[INFO] Manifest unchanged, skipping Java build\r\n[INFO] Re-launching application ... test \r\n[INFO] Relaunched test ... Application should be running.\r\n{code}\r\n\r\nWith 1.5.0 & 1.5.1 each time I get a \"compiling Android Resources\":\r\n\r\n{code}\r\n[INFO] Building test for Android ... one moment\r\n[INFO] Titanium SDK version: 1.5.1 (12/16/10 16:25 16bbb92)\r\n[INFO] Copying project resources..\r\n[INFO] Tiapp.xml unchanged, skipping class generation\r\n[INFO] Compiling Javascript Resources ...\r\n[INFO] Compiling Android Resources... This could take some time\r\n{code}", "attachment": [], "flagged": false, "summary": "android SDK > 1.5.0 \"Compiling Javascript Resources\" each time", "creator": { "name": "stephane", "key": "stephane", "displayName": "Stephane", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "stephane", "key": "stephane", "displayName": "Stephane", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129129", "author": { "name": "stephane", "key": "stephane", "displayName": "Stephane", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

i've done a pastie for :

\n

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

\n

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

\n

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

\n

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

{html}", "updateAuthor": { "name": "stephane", "key": "stephane", "displayName": "Stephane", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:20.000+0000", "updated": "2011-04-15T03:26:20.000+0000" }, { "id": "129130", "author": { "name": "stephane", "key": "stephane", "displayName": "Stephane", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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

\n

in 1.2.0 there was this test :

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

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

{html}", "updateAuthor": { "name": "stephane", "key": "stephane", "displayName": "Stephane", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:20.000+0000", "updated": "2011-04-15T03:26:20.000+0000" }, { "id": "129131", "author": { "name": "stephane", "key": "stephane", "displayName": "Stephane", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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

\n

removing it leads to :

\n

[INFO] Re-launching application ... Project\nname [INFO] Relaunched Project Name ...\nApplication should be running.

\n

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

{html}", "updateAuthor": { "name": "stephane", "key": "stephane", "displayName": "Stephane", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:26:21.000+0000", "updated": "2011-04-15T03:26:21.000+0000" }, { "id": "275789", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4781", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-19T01:09:40.000+0000", "updated": "2013-10-19T01:09:40.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }