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
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
Furthermore, would you please check whether the same issue exists when using "./" ? Thanks
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 fileMarking 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.
Closing ticket as fixed.