Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6995] Tooling: builder.py + iOS - current directory alias passed as project argument causes i18n directory to be omitted from package

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2016-08-22T22:21:09.000+0000
Affected Version/sRelease 1.7.3
Fix Version/sRelease 3.0.0
ComponentsTooling
Labelsn/a
Reportertom quas
AssigneeIngo Muschenetz
Created2011-11-03T10:29:50.000+0000
Updated2017-03-16T21:14:08.000+0000

Description

Problem

Passing a "dot" to denote the current directory (and possibly all relative paths) as an argument to builder.py causes the i18n/ directory in the root of the project to be omitted from the package. It should work with both relative and absolute project paths

Test case

The following (using an absolute path as the third argument) builds the project correctly for distribution:
$ builder.py "distribute" "5.0" "/Users/dawconsdwitservices/Documents/Titanium Studio Workspace/internacionalization" "com.appcelerator.internacionalization" "internacionalization" "F3AAB07B-9197-48F7-A128-77F18BD9CD3D" "Appcelerator Distribution Group" "/Users/dawconsdwitservices/adhoc" "universal"
The following (using "dot" as the third argument) causes the i18n/ folder in the root of the project to be omitted from the package.
$ cd /Users/dawconsdwitservices/Documents/Titanium Studio Workspace/internacionalization
$ builder.py "distribute" "5.0" "." "com.appcelerator.internacionalization" "internacionalization" "F3AAB07B-9197-48F7-A128-77F18BD9CD3D" "Appcelerator Distribution Group" "/Users/dawconsdwitservices/adhoc" "universal"

Discussions

Helpdesk: [APP-473421](http://support.appcelerator.com/tickets/APP-473421/tickets)

Workaround

Use an absolute path

Comments

  1. Paul Dowsett 2012-01-05

    Tom Thanks for this ticket. Please note the changes I have made in order for it to be escalated. Refer to the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist) and [this template](https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template) for future tickets. Would you mind verifying whether this is still an issue using 1.8.0.1? Thanks
  2. Paul Dowsett 2012-01-05

    Furthermore, would you please check whether the same issue exists when using "./" ? Thanks
  3. tom quas 2012-01-05

    Paul, the script now fails in a different function: $ /Users/tom/Library/Application\ Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py distribute 5.0 . com.app app F807537D-CB78-466F-AEEA-88941579D843 appcom universal ... [INFO] Performing clean build [ERROR] Error: Traceback (most recent call last): File "/Users/tom/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/builder.py", line 1126, in main install_defaults(project_dir, template_dir, iphone_resources_dir) File "/Users/tom/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/tools.py", line 152, in install_defaults install_default(graphic, project_dir, template_dir, dest) File "/Users/tom/Library/Application Support/Titanium/mobilesdk/osx/1.8.0.1/iphone/tools.py", line 141, in install_default shutil.copy(graphic_path, dest) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/shutil.py", line 116, in copy copyfile(src, dst) File "/usr/local/Cellar/python/2.7.2/lib/python2.7/shutil.py", line 68, in copyfile raise Error("%s and %s are the same file" % (src, dst)) Error: ./Resources/appicon.png and /Users/tom/Projects/app.com/mobile-app/build/iphone/Resources/appicon.png are the same file
  4. Chris Barber 2016-08-22

    Marking as fixed. builder.py has been deprecated in favor the new Node.js-based Titanium build system starting with Titanium SDK 3.0.0. The new Titanium build system does not have this problem because it correctly handles relative paths.
  5. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source