From reading the documentation, I see that a Worklight Adapter can call in to Java code. The training guide says "After the Worklight Adapter is built and deployed, this JAR file is automatically deployed to a Worklight server".
I was wondering what, if any, command line tasks are there to support deploying the Java code? When I look at the Developer Reference, there's a section on 'Deploying a Project', but that task seems confined to building a WAR file, not actually deploying that WAR file to a Worklight Server. In contrast, the tasks to deploy an Adapter and deploy an Application both reference the Worklight Server that they are being deployed to.
Is there a separate task for deploying that WAR to a Worklight Server? Or should that be done with the app server's tools?
Using Java in Adapters
This topic has been locked.
Pinned topic ANT task to deploy Java running in WL server?
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
AntonAleksandrov 270005D80F55 Posts
Re: ANT task to deploy Java running in WL server?2012-11-26T08:19:13ZThis is the accepted answer. This is the accepted answer.Hello,
Worklight ant tool does not have task for deploying WAR file to application server as this is not something generic.
Each application server has it's own properties, configuration and settings, therefore deploying a WAR from a command line is not that simple.
Each application server's documentation has a chapter on how to automate WAR deployment, e.g. http://wiki.apache.org/tomcat/AntDeploy