1. #1
    Sencha User
    Join Date
    Aug 2013
    Posts
    42
    Vote Rating
    1
    jeffbattershall is on a distinguished road

      0  

    Default External Libraries and CMD

    External Libraries and CMD


    I've been able to set up an external custom&nbsp;library for use by multiple apps&nbsp;and load it using Ext.Loader and require the classes and they get found on start up. I am trying to avoid using CMD packages to share code&nbsp;because some of the apps aren't compilant to the CMD (3.1.2) methodology. Problem is <STRONG>sencha app build </STRONG>doesn't find the classes and throws exception.<BR><BR>Any advice appreciated!<BR><BR>Jeff

  2. #2
    Ext JS Premium Member burnnat's Avatar
    Join Date
    Jun 2011
    Posts
    410
    Vote Rating
    55
    burnnat is a jewel in the rough burnnat is a jewel in the rough burnnat is a jewel in the rough burnnat is a jewel in the rough

      0  

    Default


    Have you tried including the library files/directory in your app.classpath config?

  3. #3
    Sencha User
    Join Date
    Aug 2013
    Posts
    42
    Vote Rating
    1
    jeffbattershall is on a distinguished road

      0  

    Default


    Great suggestion - still having difficulty getting the compiler to find the files.

    app.classpath=${app.dir}/app,${app.dir}/app.js,{app.dir}/library

    My path is library/MyAppLibrary

    Code:
    which gets loaded like so, which works at runtime:
    Ext.Loader.setConfig({enabled :
    true,paths : {MyAppLibrary: "library/MyAppLibrary "}
    });


  4. #4
    Sencha User
    Join Date
    Aug 2013
    Posts
    42
    Vote Rating
    1
    jeffbattershall is on a distinguished road

      0  

    Default


    Note I'm using MVC structure MyLibrary.view.MyClass

  5. #5
    Sencha User
    Join Date
    Aug 2013
    Posts
    42
    Vote Rating
    1
    jeffbattershall is on a distinguished road

      1  

    Default


    Missing $ in classpath - d'oh. Thanks for you help!

  6. #6
    Ext JS Premium Member burnnat's Avatar
    Join Date
    Jun 2011
    Posts
    410
    Vote Rating
    55
    burnnat is a jewel in the rough burnnat is a jewel in the rough burnnat is a jewel in the rough burnnat is a jewel in the rough

      0  

    Default


    Ah, good catch! Those pesky typos. Glad you got it working

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar