IBM工作灯6.0 - worklightserverhost属性和应用建设者Ant任务 [英] IBM Worklight 6.0 - worklightserverhost attribute and the app-builder Ant task

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

问题描述

我有一个Ant构建文件上工作灯v5.0.6工作的罚款。在移植到工作灯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"/>

我找不到任何价值的文档放到这里还是它的意义;我的猜测是,它应该是,这是以前在应用descriptor.xml ,现在从 worklight.properties 建设工作灯Studio时,因此它不只是主持人,而且港口和上下文根。是这样吗?

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?

推荐答案

此属性现在需要所致,正如你提到的,除去 worklightServerRootURL 应用descriptor.xml 。所以,如果你正在使用的应用建设者Ant任务,你需要指定主机,端口和上下文根。结果
例如: worklightserverhost =htt​​p://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"

这是否对你的工作?

我会打开关于丢失信息的文档缺陷;它似乎更喜欢的文章(S)约6.0还没有在IBM工作灯信息中心更新了Ant任务(<一个href=\"http://pic.dhe.ibm.com/infocenter/wrklight/v6r0m0/topic/com.ibm.worklight.help.doc/devref/r_ant_tasks_buld_deploy_adapters.html\"相对=nofollow>适配器,<一个href=\"http://pic.dhe.ibm.com/infocenter/wrklight/v6r0m0/topic/com.ibm.worklight.help.doc/devref/r_ant_tasks_buld_deploy_apps.html\"相对=nofollow>应用)。

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工作灯6.0 - worklightserverhost属性和应用建设者Ant任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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