IBM Worklight 6.0 - worklightserverhost 属性和应用程序构建器 Ant 任务 [英] IBM Worklight 6.0 - worklightserverhost attribute and the app-builder Ant task

查看:22
本文介绍了IBM Worklight 6.0 - worklightserverhost 属性和应用程序构建器 Ant 任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Ant 构建文件在 Worklight v5.0.6 上运行良好.在移植到 Worklight v6.0 时,我发现应用程序构建器任务有一个新的强制性属性 worklightserverhost.

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"/>

我找不到任何关于放置在这里的价值或其重要性的文档;我的猜测是它应该是以前在 application-descriptor.xml 中的值,现在在 Worklight Studio 中构建时从 worklight.properties 中获取,因此它不仅是主机,还有端口和上下文根.是吗?

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?

推荐答案

现在需要此属性,因为正如您提到的,从 application-descriptor.xml<中删除了 worklightServerRootURL/代码>.因此,如果您使用 app-builder Ant 任务,则需要指定主机、端口和上下文根.
例如:worklightserverhost="http://9.148.22.4:10080/testProject"

This attribute is now required due to, as you mentioned, the removal of worklightServerRootURL from application-descriptor.xml. So if you're using the app-builder Ant task you need to specify the host, port and context-root.
For example: worklightserverhost="http://9.148.22.4:10080/testProject"

这对你有用吗?

我将打开有关缺失信息的文档缺陷;IBM Worklight 信息中心 (适配器应用程序).

I will open a documentation defect about the missing information; it seems more like the article(s) about the Ant task in 6.0 have not been updated in the IBM Worklight Information Center (adapters, apps).

这篇关于IBM Worklight 6.0 - worklightserverhost 属性和应用程序构建器 Ant 任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆