1

I had an Ant build file working fine on Worklight v5.0.6. On porting to Worklight v6.0 I found out that there's a new mandatory attribute, worklightserverhost, for the app-builder task.

 <app-builder 
    applicationFolder="path/to/proj"
    environments="mobilewebapp,android,iphone"
    nativeProjectPrefix="myproj"
    worklightserverhost="?Here?" 
    outputFolder="where/to/put/it"/>

I can find no documentation of the value to put here or its significance; my guess is that it is supposed to be the value that was formerly in application-descriptor.xml and is now taken from worklight.properties when building in Worklight Studio, and hence it's not just the host but also the port and context root. Is that right?

4

1 回答 1

3

正如您所提到的,由于删除了worklightServerRootURLfrom ,因此现在需要此属性application-descriptor.xml。因此,如果您使用 app-builder Ant 任务,您需要指定主机、端口和上下文根。
例如:worklightserverhost="http://9.148.22.4:10080/testProject"

这对你有用吗?

我将打开有关缺失信息的文档缺陷;看起来更像是关于 6.0 中 Ant 任务的文章尚未在 IBM Worklight 信息中心(适配器应用程序)中更新。

于 2013-07-16T18:09:17.343 回答