{ "id": "63653", "key": "TIMOB-3021", "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": "12075", "description": "", "name": "Sprint 2011-35", "archived": true, "released": true, "releaseDate": "2011-09-05" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-09-02T14:41:25.000+0000", "created": "2011-04-15T03:34:55.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [], "assignee": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-09-13T10:00:39.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" } ], "description": "{html}

Hi,

\r\n

I was playing around with the 1.6 SDK today and tried to build\r\none of my projects against it. Much to my surprise, I got an error\r\nthe first time out. After playing around, I discovered that it was\r\nmy version control system (Subversion) that was causing the\r\ncrashes. It seems that builder.py is querying all files and\r\ndirectories and not excluding certain one's like .svn Anyways, I\r\ndeleted all of my .svn directories and everything worked fine.\r\nBelow is the trace output from my build error. To reproduce this\r\nerror, all you have to do is check out a titanium project from\r\nsubversion, touch the tiapp.xml file to get a full re-build and\r\npresto, here it is!

\r\n

[INFO] Building Health Watch for Android ...\r\none moment [DEBUG]\r\nC:\\ProgramData\\Android\\android-sdk-windows\\platform-tools\\adb.exe\r\nstart-server [INFO] Titanium SDK version: 1.6.0 (02/01/11\r\n17:45 a632082...) [DEBUG] Waiting for device to be ready ...\r\n[TRACE] adb devices returned 2\r\ndevices/emulators [DEBUG] Device connected... (waited 0\r\nseconds) [DEBUG] waited 0.058000 seconds on emulator\r\nto get ready [DEBUG]\r\nC:\\ProgramData\\Android\\android-sdk-windows\\platform-tools\\adb.exe\r\n-e shell ls /data/app/org.rarely.apps.healthwatch.apk [DEBUG] org.rarely.apps.healthwatch\r\ninstalled? False [DEBUG]\r\nC:\\ProgramData\\Android\\android-sdk-windows\\platform-tools\\adb.exe\r\n-e shell ls\r\n/sdcard/Ti.debug/org.rarely.apps.healthwatch/Resources/app.js\r\n[DEBUG] org.rarely.apps.healthwatch\r\nresources installed? False [INFO] Copying project resources.. [INFO] Detected tiapp.xml change, forcing\r\nfull re-build... [TRACE] COPYING CREATED FILE:\r\nC:\\Projects\\Health Watch\\Resources\\android\\appicon.png =>\r\nC:\\Projects\\Health\r\nWatch\\build\\android\\bin\\assets\\Resources\\appicon.png [TRACE] COPYING CREATED FILE:\r\nC:\\Projects\\Health Watch\\Resources\\android\\default.png =>\r\nC:\\Projects\\Health\r\nWatch\\build\\android\\bin\\assets\\Resources\\default.png [TRACE] COPYING CREATED FILE:\r\nC:\\Projects\\Health Watch\\Resources\\app.js => C:\\Projects\\Health\r\nWatch\\build\\android\\bin\\assets\\Resources\\app.js [TRACE] COPYING CREATED FILE:\r\nC:\\Projects\\Health Watch\\Resources\\default_app_logo.png =>\r\nC:\\Projects\\Health\r\nWatch\\build\\android\\bin\\assets\\Resources\\default_app_logo.png\r\n[TRACE] COPYING CREATED FILE:\r\nC:\\Projects\\Health Watch\\Resources\\KS_nav_ui.png =>\r\nC:\\Projects\\Health\r\nWatch\\build\\android\\bin\\assets\\Resources\\KS_nav_ui.png [TRACE] COPYING CREATED FILE:\r\nC:\\Projects\\Health Watch\\Resources\\KS_nav_views.png =>\r\nC:\\Projects\\Health\r\nWatch\\build\\android\\bin\\assets\\Resources\\KS_nav_views.png [TRACE] Generating Java Classes [DEBUG] detected module analytics, path =\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\modules\\titanium-analytics.jar\r\n[DEBUG] detected module android, path =\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\modules\\titanium-android.jar\r\n[DEBUG] adding required library:\r\ntitanium.jar [DEBUG] adding required library:\r\nti-commons-codec-1.3.jar [DEBUG] adding required library:\r\nsmalljs.jar [DEBUG] adding required library:\r\njaxen-1.1.1.jar [DEBUG] detected module ui, path =\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\modules\\titanium-ui.jar\r\n[DEBUG] detected module app, path =\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\modules\\titanium-app.jar\r\n[DEBUG] detected module api, path =\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\modules\\titanium-api.jar\r\n[DEBUG] detected module filesystem, path =\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\modules\\titanium-filesystem.jar\r\n[DEBUG] detected module media, path =\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\modules\\titanium-media.jar\r\n[DEBUG] detected module json, path =\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\modules\\titanium-json.jar\r\n[DEBUG] detected module locale, path =\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\modules\\titanium-locale.jar\r\n[DEBUG] Detecting modules in\r\nC:\\Projects\\Health Watch\\modules [DEBUG] Detecting modules in\r\nC:\\ProgramData\\Titanium\\modules [TRACE] Generating C:\\Projects\\Health\r\nWatch\\build\\android\\gen\\org\\rarely\\apps\\healthwatch\\HealthWatchAppInfo.java\r\n[TRACE] Generating C:\\Projects\\Health\r\nWatch\\build\\android\\AndroidManifest.xml [TRACE] Generating C:\\Projects\\Health\r\nWatch\\build\\android\\gen\\org\\rarely\\apps\\healthwatch\\HealthWatchApplication.java\r\n[TRACE] Generating C:\\Projects\\Health\r\nWatch\\build\\android\\gen\\org\\rarely\\apps\\healthwatch\\HealthWatchActivity.java\r\n[TRACE] Generating C:\\Projects\\Health\r\nWatch\\build\\android.classpath [TRACE] Generating C:\\Projects\\Health\r\nWatch\\build\\android.project [TRACE] Generating C:\\Projects\\Health\r\nWatch\\build\\android\\default.properties [TRACE] Skipping copying gitignore ->\r\n.gitignore because already exists [DEBUG] detected module analytics, path =\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\modules\\titanium-analytics.jar\r\n[DEBUG] detected module android, path =\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\modules\\titanium-android.jar\r\n[DEBUG] adding required library:\r\ntitanium.jar [DEBUG] adding required library:\r\nti-commons-codec-1.3.jar [DEBUG] adding required library:\r\nsmalljs.jar [DEBUG] adding required library:\r\njaxen-1.1.1.jar [DEBUG] detected module ui, path =\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\modules\\titanium-ui.jar\r\n[DEBUG] detected module app, path =\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\modules\\titanium-app.jar\r\n[DEBUG] detected module api, path =\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\modules\\titanium-api.jar\r\n[DEBUG] detected module filesystem, path =\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\modules\\titanium-filesystem.jar\r\n[DEBUG] detected module media, path =\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\modules\\titanium-media.jar\r\n[DEBUG] detected module json, path =\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\modules\\titanium-json.jar\r\n[DEBUG] detected module locale, path =\r\nC:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\modules\\titanium-locale.jar\r\n[INFO] Compiling Javascript Resources ...\r\n[DEBUG] Processing Android resource\r\ndrawables [TRACE] COPYING FILE: C:\\Projects\\Health\r\nWatch\\Resources\\android\\images\\res-long-land-hdpi.svn\\all-wcprops\r\n=> C:\\Projects\\Health\r\nWatch\\build\\android\\res\\drawable-long-land-hdpi_20f791a761.svn/all-wcprops\r\n[ERROR] Error in compiler. , [Errno 2] No\r\nsuch file or directory: 'C:\\Projects\\Health\r\nWatch\\build\\android\\res\\drawable-long-land-hdpi\\20f791a761.svn/all-wcprops';\r\nTraceback (most recent call last): File\r\n\"C:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\builder.py\",\r\nline 1626, in s.build_and_run(False,avd_id) File\r\n\"C:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\builder.py\",\r\nline 1392, in build_and_run self.copy_resource_drawables() File\r\n\"C:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\builder.py\",\r\nline 501, in copy_resource_drawables copy_resource_drawable(f) File\r\n\"C:\\ProgramData\\Titanium\\mobilesdk\\win32\\1.6.0\\android\\builder.py\",\r\nline 481, in copy_resource_drawable shutil.copy(orig, dest) File\r\n\"C:\\Python25\\lib\\shutil.py\", line 85, in copy copyfile(src, dst)\r\nFile \"C:\\Python25\\lib\\shutil.py\", line 52, in copyfile fdst =\r\nopen(dst, 'wb') IOError: [Errno 2] No such file or directory:\r\n'C:\\Projects\\Health\r\nWatch\\build\\android\\res\\drawable-long-land-hdpi\\20f791a761.svn/all-wcprops'

{html}", "attachment": [ { "id": "22325", "filename": "android (2).zip", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-08T10:47:32.000+0000", "size": 1617862, "mimeType": "application/zip" } ], "flagged": false, "summary": "Android: Build fails with svn in the source tree", "creator": { "name": "jasone.gyurkovitz", "key": "jasone.gyurkovitz", "displayName": "Jason E. Gyurkovitz", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "129884", "author": { "name": "newgen", "key": "newgen", "displayName": "newgen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

i had the same problem here.

\n

can be fixed by adding the following lines in the file\n\"android\\builder.py\", function \"copy_resource_drawable\" after the\nline 468:

\n

if '.svn' in orig:

\n
\nreturn\n
{html}", "updateAuthor": { "name": "newgen", "key": "newgen", "displayName": "newgen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:34:55.000+0000", "updated": "2011-04-15T03:34:55.000+0000" }, { "id": "162163", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have attached and archive named \"android (2).zip\" that you can use to reproduce this error.\r\n\r\nStep 1: replace the android folder in your project with the one in the archive.\r\nStep 2: run your application\r\nStep 3: see the build fail (console log below)\r\n\r\n{code:title=\"console\"}\r\n[DEBUG] Processing Android resource drawables \r\n[TRACE] COPYING FILE: /Users/wizard/Documents/development/svn/products/eventsentry/mobile/Resources/android/images/res-long-land-hdpi/KS_nav_networkstatus.png => /Users/wizard/Documents/development/svn/products/eventsentry/mobile/build/android/res/drawable-long-land-hdpi/ks_nav_networkstatus_d1a7f6f713.png \r\n[TRACE] COPYING FILE: /Users/wizard/Documents/development/svn/products/eventsentry/mobile/Resources/android/images/res-long-land-hdpi/.svn/all-wcprops => /Users/wizard/Documents/development/svn/products/eventsentry/mobile/build/android/res/drawable-long-land-hdpi/_20f791a761.svn/all-wcprops [ERROR] Exception occured while building Android project: \r\n[ERROR] Traceback (most recent call last): [ERROR] File \"/Users/wizard/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/android/builder.py\", line 1958, in \r\n[ERROR] s.build_and_run(False, avd_id, debugger_host=debugger_host) \r\n[ERROR] File \"/Users/wizard/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/android/builder.py\", line 1729, in build_and_run \r\n[ERROR] self.resource_drawables_changed = self.copy_resource_drawables() \r\n[ERROR] File \"/Users/wizard/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/android/builder.py\", line 563, in copy_resource_drawables \r\n[ERROR] copy_resource_drawable(f) \r\n[ERROR] File \"/Users/wizard/Library/Application Support/Titanium/mobilesdk/osx/1.7.2/android/builder.py\", line 538, in copy_resource_drawable \r\n[ERROR] shutil.copy(orig, dest) \r\n[ERROR] File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py\", line 116, in copy [ERROR] copyfile(src, dst) \r\n[ERROR] File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py\", line 82, in copyfile \r\n[ERROR] with open(dst, 'wb') as fdst: \r\n[ERROR] IOError: [Errno 2] No such file or directory: '/Users/wizard/Documents/development/svn/products/eventsentry/mobile/build/android/res/drawable-long-land-hdpi/_20f791a761.svn/all-wcprops'\r\n{code}\r\n\r\nh3. Tested using\r\nTiSDK 1.7.2\r\nAndroid Emulator 2.2\r\n\r\nh3. Workaround\r\nConfirmed above workaround works\r\nAdd the following lines to \"android/build.py\" at line 526 for SDK 1.7.2\r\n{code}\r\nif '.svn' in orig:\r\n\treturn\r\n{code}\r\n\r\nh3. Associated Helpdesk Ticket\r\nhttp://appc.me/c/APP-826844", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-08T10:47:32.000+0000", "updated": "2011-08-08T11:07:58.000+0000" }, { "id": "164808", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h4. Associated Helpdesk Ticket\r\nhttp://appc.me/c/APP-959943", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-01T11:57:47.000+0000", "updated": "2011-09-01T11:57:47.000+0000" }, { "id": "164881", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Confirmed fixed with: \r\nTiSDK 1.8.0.v20110828131421\r\nAndroid Emulator 2.2", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-01T18:46:59.000+0000", "updated": "2011-09-01T18:46:59.000+0000" }, { "id": "164988", "author": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Updating status to confirm fixed.", "updateAuthor": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-02T14:41:25.000+0000", "updated": "2011-09-02T14:41:25.000+0000" }, { "id": "165814", "author": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolved.\r\n\r\nTested on:\r\nMac OSX Lion\r\nTiMob: 1.8.0.v20110906155354\r\nTiStud: 1.0.5.201109091616\r\n\r\nDevices Used:\r\nAndroid Emulator 2.2\r\nDroid3\r\nGoogle Nexus S", "updateAuthor": { "name": "vsingh", "key": "vsingh", "displayName": "Vikramjeet Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-13T10:00:30.000+0000", "updated": "2011-09-13T10:00:30.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }