On 11/4/14, 10:17 PM, "Raj U. Shaikh" <raj.sha...@mastek.com> wrote:
>using FlashBuilder Project Files
>FlashBuilder settings:
>    -locale
>    en_US
>    -source-path+=D:\eclipse_workspace\flexJsWS\DataBindingTest/src
>    -compiler.accessible=true
>    
>-output=D:\eclipse_workspace\flexJsWS\DataBindingTest/bin-release/DataBind
>ingTest.swf
>    -library-path+=D:\eclipse_workspace\flexJsWS\DataBindingTest/libs
>    -js-output-type=FLEXJS
>    
>-sdk-js-lib=D:\software\apache-flex-flexjs-0.0.2-jBurg\js\bin\..\..\framew
>orks\js\FlexJS\src
>    -fb
>    D:\eclipse_workspace\flexJsWS\DataBindingTest/src/DataBindingTest.mxml
>Compiling file: 
>D:\eclipse_workspace\flexJsWS\DataBindingTest\bin\js-debug\DataBindingTest
>.js
>Compiling file: 
>D:\eclipse_workspace\flexJsWS\DataBindingTest\bin\js-debug\StockDataJSONIt
>emConverter.js
>Compiling file: 
>D:\eclipse_workspace\flexJsWS\DataBindingTest\bin\js-debug\MyInitialView.j
>s
>Compiling file: 
>D:\eclipse_workspace\flexJsWS\DataBindingTest\bin\js-debug\models\MyModel.
>js
>Compiling file: 
>D:\eclipse_workspace\flexJsWS\DataBindingTest\bin\js-debug\controllers\MyC
>ontroller.js
>Could not find file for class: components.MyTextInput
>java.io.FileNotFoundException:
>        at java.io.FileInputStream.open(Native Method)

Hi Raj,

This is a known issue.  If you have a custom SWC, you’ll currently need to
modify the the launch config to add an -sdk-js-lib entry for your .js
files.  I recommend copying the current “FlexJs (FalconJX Debug and
Release Build)” launch config and adding the path to the root of the
folder containing MyTextInput.js.  I think that would be:

  -sdk-js-lib=D:\eclipse_workspace\flexJsWS\DataBindingTest\libs

We have not finalized plans on how to make this work better.  I’ve
considered things like package .js files into the SWC.  That makes it
easier to deploy but makes it harder to debug.  Maybe it can assume the
.JS files are co-located near the SWC somehow so it can calculate the path
to the .js files from the -library-path options.  Your thoughts are
welcome.

Thanks,
-Alex


Reply via email to