Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14189] Build: Files imported as links are not included in the build

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.2.1
Fix Version/sn/a
ComponentsTooling
Labelsqe-3.1.1
ReporterDavide Cassenti
AssigneeUnknown
Created2013-06-07T15:38:51.000+0000
Updated2018-02-28T20:03:42.000+0000

Description

Problem description

Importing a file as link does not work when building the application. The files are not copied in the build.

Steps to reproduce

1) Create a folder outside the project directory, with a file named 'main.js' that has the following content:
export.testfunction = function() {
    alert("MAIN");
}
2) Create a new application with this code:
var main = require('shared/main');
main.testfunction();
3) Create a directory in Resources, e.g. 'shared' 4) Right click on the folder, and choose 'Import...' 5) Choose General/Filesystem and select the folder created in #1 6) Select the file, and choose the options 'Create links in workspace', 'Create virtual folders' and 'Create link locations relative to PROJECT_LOC' 7) Build the app - the module won't be found

Comments

  1. carlo 2014-03-19

    there isn't yet a way to share simple modules between projects... update the building script for reading linkedResources tag from eclipse's .project and copy them in the project folder is the simplest way IMHO

JSON Source