Search code examples
antibm-mobilefirstblackberry-10

Blackberry10 doesn't show the Worklight plugins folder


When I build the blackberry environment, I'm able to generate the native folder using ANT scripts. However, I don't see the Worklight plugins folder inside the

/native/www/webresources/default/worklight

enter image description here

During the ANT build, I see that I'm pointing to the correct sdks path:

[app-builder] WARNING: FWLST1123I: Using BlackBerry WEBWORKS_HOME path: /Applications/BB10 WebWorks SDK 2.2.0.15

In ANT script I'm using:

<target name="build-wl-app-src">
    <echo level="info">IMP: Build Worklight Project for ${wl.server.SRC}</echo>

    <echo level="info"> - Building Worklight artifacts and creating native project source for  iPhone and Android, common, blackberry10</echo>
    <app-builder applicationFolder="${wl.project.location.SRC}/apps/${wl.application.name}" environments="android,iphone,ipad,common,blackberry10" outputfolder="${output.location.SRC}" worklightserverhost="${wl.server.SRC}" nativeprojectprefix="${project.name}"/>
</target>

any solution would be appreciated.


Solution

  • Even when using Studio, the path you've mentioned does not show a "plugins" folder, and I believe this is OK.

    Starting WebWorks 2.x the project structure of a BlackBerry 10 project has changed dramatically from what you're used to with WebWorks 1.x.

    If you WEBWORKS_HOME environment variable is pointing to the WebWorks 2.x SDK then Studio (and the Ant builder .jar file) will generate the new project structure.

    You will find the plugins folder here: native\plugins

    This is mentioned in the blog post from the comments: https://developer.ibm.com/mobilefirstplatform/2015/03/05/ootb-support-blackberry-webworks-2-2/

    If you need to migrate from WebWorks 1.x to 2.x, there's a quick guide here: https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-0/setting-up-your-development-environment/setting-blackberry-10-development-environment/