Topic
  • 3 replies
  • Latest Post - ‏2012-05-30T13:28:03Z by IdanAdar
SystemAdmin
SystemAdmin
570 Posts

Pinned topic [Solved] Beginner's question: where do I put the dojo libraries on my Worklight Eclipse project?

‏2012-05-30T09:33:07Z |
Hi all

I'm having doubts as to where I should put the dojo, dojox, etc JS libraries on my Worklight project and I have struggled to find any documentation on it... I see 2 possibilities:

  • "app/MyAppName/common/js" folder... I think from searching the forum this is where it should go...
  • I see the project has a top sub-folder called Javascript resources where the Worklight API library is... must I add a new one there for Dojo libraries?? - would this also work and is it advisable?

Thanks a mil
Jose Correia
  • IdanAdar
    IdanAdar
    288 Posts

    Re: [Solved] Beginner's question: where do I put the dojo libraries on my Worklight Eclipse project?

    ‏2012-05-30T10:26:20Z  
    Dojo support is coming in Worklight 5.0, out in a couple of weeks.
  • SystemAdmin
    SystemAdmin
    570 Posts

    Re: [Solved] Beginner's question: where do I put the dojo libraries on my Worklight Eclipse project?

    ‏2012-05-30T13:21:59Z  
    Thanks Idan. You have a precise date?

    Im having issues with incorporating dojo libraries in Worklight, Im putting them under common/js ... but when I build for a Blackberry environment I get a whole bunch of these:

    2012-05-30 15:18:20 blackberry build failed: Blackberry environment does not support hyphens in file names. These files are invalid:
    common\\js\\dojox\\mobile\\themes\\blackberry\\Overlay-compat.css, common\\js\\dojox\\mobile\\themes\\blackberry\\ProgressIndicator-compat.css, common\\js\\dojox\\mobile\\themes\\blackberry\\RadioButton-compat.css, common\\js\\dojox\\mobile\\themes\\blackberry\\RoundRect-compat.css, common\\js\\dojox\\mobile\\themes\\blackberry\\RoundRectList-compat.css, common\\js\\dojox\\mobile\\themes\\blackberry\\Slider-compat.css, common\\js\\dojox\\mobile\\themes\\blackberry\\Switch-compat.css, common\\js\\dojox\\mobile\\themes\\blackberry\\TabBar-compat.css, common\\js\\dojox\\mobile\\themes\\blackberry\\TextArea-compat.css, common\\js\\dojox\\mobile\\themes\\blackberry\\TextBox-compat.css, common\\js\\dojox\\mobile\\themes\\blackberry\\ToggleButton-compat.css, common\\js\\dojox\\mobile\\themes\\blackberry\\Tooltip-compat.css, common\\js\\dojox\\mobile\\themes\\common\\compat\\spinwheel-bar.png, common\\js\\dojox\\mobile\\themes\\common\\compat\\spinwheel-bg.png, common\\js\\dojox\\mobile\\themes\\common\\dijit\\Calendar-compat.css, common\\js\\dojox\\mobile\\themes\\common\\dijit\\compat\\calendar-daylabel-bg.png, common\\js\\dojox\\mobile\\themes\\common\\dijit\\compat\\calendar-month-bg.png, common\\js\\dojox\\mobile\\themes\\common\\dijit\\compat\\calendar-year-bg.png, common\\js\\dojox\\mobile\\themes\\common\\dijit\\dijit-compat.css, common\\js\\dojox\\mobile\\themes\\common\\domButtons\\DomButtonBlackCircleCross-compat.css,

    This is quite crappy as I now have to rename these and have to first look for any references before renaming them... is there a better way of doing it while we wait for worklight 5?

    Regards
    Jose Correia
  • IdanAdar
    IdanAdar
    288 Posts

    Re: [Solved] Beginner's question: where do I put the dojo libraries on my Worklight Eclipse project?

    ‏2012-05-30T13:28:03Z  
    No. You'll have to rename the filenames.