Can IBM Worklight Mobile build faster - ibm-mobilefirst

Currently I am using Eclipse. Can I use another IDE or a customized configuration for Eclipse to build for my project faster? I want to increase my production time.

Worklight 6.2 and above provide a command line interface which you can use instead of Eclipse.
With some development effort you could also take the CLI and hook it to other IDEs that provide pluggability options.
You can read more about the CLI, here:
For Worklight 6.2: Command Line Interface for IBM Worklight Developers
For MobilFirst 6.3 and above: Using CLI to create, build, and manage MobileFirst project artifacts

Related

install worklight in eclipse juno

I'm working on a hybrid application so when I try to install worklight in eclipse Juno I followed two methods: the 1st one is searching in the eclipse market and that doesn't work and the 2nd is clicking Help, choose install new software, click on add, enter worklight as a name and the following URL for location: http://public.dhe.ibm.com/ibmdl/export/pub/software/mobile-solutions/worklight/wdeupdate/, here the problem was that this link doesn't work.
The current MobileFirst Studio release on the Eclipse Marketplace is of v8.0. If you are looking for previous releases of IBM MobileFirst, [you can find additional downloads in the developer center](https://mobilefirstplatform.ibmcloud.com/downloads/.
In v8.0 the MobileFirst plug-in for Eclipse exposes CLI commands into the Eclipse interface, such as: register application, preview application, open console and a few more (see the tutorial for more information.
v8.0 requires Eclipse Mars.
Note: In v8.0 you create standard Cordova applications using the Cordova CLI, and you add the MobileFirst SDK (a set of Cordova plug-ins) also using the Cordova CLI. You only use Eclipse if you prefer to use Eclipse is your development environment (to write Java/Script code for adapters).
Also required is the THyM plug-in (available from the Eclipse Marketplace) if you'll choose to use Eclipse to develop your Cordova applications.

Enabling Minification/Concatenation on 6.3 version of MobileFirst CLI?

We are trying to enable the Minficiation/Concatenation feature in MobileFirst 6.3 via the command line for use in our build servers. However, we cannot find the correct options to select to get it do that task.
We have been able to successfully perform this task using the IDE, but this is not a viable option with the build server. We are using identical build-settings.xml files between the Eclipse IDE build and the CLI build.
I have heard that there is a method for accomplishing this through editing the ANT script of the CLI. Does anyone know where this is located in the CLI, and how I would go about doing this?
The optimization feature that enables minification and/or concatenation in Hybrid applications is not available in the MobileFirst 6.3 CLI tool - only in MobileFirst Studio.
This is, however, possible using the MobileFirst CLI tool in v7.0. You can find the user documentation for this feature here: http://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.dev.doc/dev/c_optimize_app_cli.html

Adding worklight adapter programmatically

I am creating application which should be plugin upgradable.
Problem is that every plugin should consist of some client code and there should also be some sort of adapter which will fetch data to application from 3rd party site/api/... So my problem is how do I add new adapter to server programmatically when someone deploy new plugin?? Is it possible? Or is there better architectonic approach?
Using Worklight Studio (plug-in for Eclipse), you cannot programmatically add adapters.
If you are using Worklight 6.2, you can explore the newly released Worklight CLI, which is a command line interface to create projects, applications, adapters, environments, etc... perhaps you could devise a way to intergrate this into a build a system of your own that will fit your needs.
Training module: Using CLI to create, build, and manage Worklight project artifacts
User documentation: Command Line Interface for IBM Worklight Developers

IBM Worklight - Deploy all adapters at once

I have total 35 (and increasing) Worklight Adapters in my Worklight Hybrid App.
Now every time I power on my Mac, I need to deploy all those work light adapters ONE-BY-ONE
Is there any method by which I can deploy awl the adapters in single shot. As of now, I am unable to find out the way.
Anyone else faced the similar problem?
I am using:
Eclipse Java EE IDE for Web Developers.
Version: Juno Service Release 2
Build id: 20130225-0426
If that matters.
A Deploy All Adapters action is not available in Worklight Studio, but sounds like a rather useful feature for cases like yours. Feel free to submit a feature request.
After you power on the computer, open Eclipse and start the Worklight Development Server, and then visit Worklight Console, the apps and adapters are not available? I find it highly unlikely that you will need to re-deploy all of your adapters...
A possible workaround for it will be to enhance the Ant script that deploys apps and adapters, to deploy them all using a loop. Also see:
Ant tasks for building and deploying applications and adapters

IDE for websphere/jython

I would like to develop administrative jython-scripts for WebSphere 7. Is there any IDE (or may be plugins for eclipse) which provides code auto-completition functions, ability to start/stop server, debug jython scripts? I know that there is the Application Server Toolkit 6.1 but it is for WebSphere 6.1 and couldn't be applied to WebSphere 7.
In WAS 7, "IBM Rational Application Developer Assembly and Deploy V7.5" has replaced the AST. "IBM Rational Application Developer V7.5 for WebSphere" is a superset of "IBM Rational Application Developer Assembly and Deploy V7.5". Both ship with your copy of WAS, but the license for RAD is just a trial one, while the license for the assembly and deploy tool does not expire. See:
http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/catk_assemblytools.html
Either should allow you to create/debug Jython/wsadmin scripts.
As for Python/Jython there is PyDev Eclipse plugin.
I got frustrated with Jython Wsadmin myself. I built a tool that uses a Groovy-DSL for my configuration:
Datasource
JdbcProvider
SIB, JmsQueue, Top
ActivationSpec
etc.
You can add it as a project dependency in IntelliJ and you got completion and inspection. You will be able to step through the script with a Debugger as in a regular Java program. I didn't test the start/stop server functionality, though.
I went as far as to make it useful for my purpose, pull requests welcome:
https://github.com/revaultch/wsadmin-groovy