{ "id": "115671", "key": "TIMOB-14189", "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": [], "resolution": null, "resolutiondate": null, "created": "2013-06-07T15:38:51.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "qe-3.1.1" ], "versions": [ { "id": "15856", "description": "Release 3.2.1", "name": "Release 3.2.1", "archived": false, "released": true, "releaseDate": "2014-02-10" } ], "issuelinks": [ { "id": "29457", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "85203", "key": "TISTUD-1192", "fields": { "summary": "'Linked Resources' in Titanium Studio", "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": "Medium", "id": "3" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": null, "updated": "2018-02-28T20:03:42.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10207", "name": "Tooling" } ], "description": "h2. Problem description\r\nImporting a file as link does not work when building the application. The files are not copied in the build.\r\n\r\nh2. Steps to reproduce\r\n1) Create a folder outside the project directory, with a file named 'main.js' that has the following content:\r\n\r\n{code}\r\nexport.testfunction = function() {\r\n alert(\"MAIN\");\r\n}\r\n{code}\r\n\r\n2) Create a new application with this code:\r\n\r\n{code}\r\nvar main = require('shared/main');\r\nmain.testfunction();\r\n{code}\r\n\r\n3) Create a directory in Resources, e.g. 'shared'\r\n4) Right click on the folder, and choose 'Import...'\r\n5) Choose General/Filesystem and select the folder created in #1\r\n6) Select the file, and choose the options 'Create links in workspace', 'Create virtual folders' and 'Create link locations relative to PROJECT_LOC'\r\n7) Build the app - the module won't be found\r\n\r\n", "attachment": [], "flagged": false, "summary": "Build: Files imported as links are not included in the build", "creator": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "dcassenti", "key": "dcassenti", "displayName": "Davide Cassenti", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Titanium Studio, build: 3.1.0.201304151600\r\nSDK 2.1.4\r\nSDK 3.0.2\r\nSDK 3.1.0", "comment": { "comments": [ { "id": "297851", "author": { "name": "c3k", "key": "c3k", "displayName": "carlo", "active": true, "timeZone": "Europe/Berlin" }, "body": "there isn't yet a way to share simple modules between projects...\r\n\r\nupdate the building script for reading linkedResources tag from eclipse's .project and copy them in the project folder is the simplest way IMHO", "updateAuthor": { "name": "c3k", "key": "c3k", "displayName": "carlo", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-03-19T10:08:50.000+0000", "updated": "2014-03-19T10:09:22.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }