Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
wlServerContext值即将到来'/';从ant脚本构建环境文件之后_Ant_Ibm Mobilefirst_Worklight Server - Fatal编程技术网

wlServerContext值即将到来'/';从ant脚本构建环境文件之后

wlServerContext值即将到来'/';从ant脚本构建环境文件之后,ant,ibm-mobilefirst,worklight-server,Ant,Ibm Mobilefirst,Worklight Server,我使用ant task构建了我的项目。构建完成后,我注意到“wlclient.properties”和“worklight.plist”中的wlServerContext属性值即将出现“/”而不是“/MyProject/”。如果我从eclipse构建项目,那么一切都会很好。我使用的是Worklight 6.2Consumer Edition。在worklightserverhost属性中,必须包含项目名称,该名称将作为上下文根。 试试这个: worklightserverhost=“${wl.s

我使用ant task构建了我的项目。构建完成后,我注意到
“wlclient.properties”
“worklight.plist”
中的
wlServerContext
属性值即将出现
“/”
而不是
“/MyProject/”。
如果我从eclipse构建项目,那么一切都会很好。我使用的是
Worklight 6.2
Consumer Edition。

在worklightserverhost属性中,必须包含项目名称,该名称将作为上下文根。 试试这个:
worklightserverhost=“${wl.server.protocol}://${wl.server.ip}:${wl.server.port}/${wl.runtime.name}”

Prerak,当您询问有关Worklight的问题时,请始终提及您的Worklight版本和内部版本号。Worklight有很多版本。@IdanAdar我已经更新了这个问题。我正在使用worklight 6.2版。