MobileFirst 7.1 OSX Eclipse服务器URL设置 [英] MobileFirst 7.1 OSX Eclipse server url setting

查看:184
本文介绍了MobileFirst 7.1 OSX Eclipse服务器URL设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Mac中使用带有MFP 7.1的Eclipse Juno。



我把我的服务器地址放在配置构建和部署目标



解决方案

这是为我在Mac上使用Eclipse Mars.2和IBM MobileFirst Platform Studio 7.1.0.00-20160419-1518。


  1. 通过测试应用程序创建了一个新的测试项目,并添加了iPhone环境。

  2. As> Run在MobileFirst开发服务器上



    这显示mbp-idan.local


  3. 构建设置和部署目标,并更改值如下:




  4. 选择运行方式>在MobileFirst开发服务器上运行


  5. 打开test\iphone\\\
    ative\worklight.plist和我请参阅以下内容:



    < dict>
    < key>协议< / key>
    < string> http< / string>
    < key> host< / key>
    < string> example.com< / string>
    < key> port< / key>
    < string> 80< / string>
    < key> wlServerContext< / key>
    < string> / helloworld /< / string>



I am using Eclipse Juno with MFP 7.1 in a Mac.

I put my server address in Configure Build and Deploy Target http://example.com:80 and then use Run As > Run on MobileFirst Development Server.

In Windows, this updates my worklight.plist and wlclient.properties files with the new values for the server URL and port number, however in Mac the values remains MyMacBookPro.local as the server URL and the port number as 10080.

Migrated to Eclipse Mars but the problem remains the same:

解决方案

This is working for me using Eclipse Mars.2 and IBM MobileFirst Platform Studio 7.1.0.00-20160419-1518, on Mac.

  1. Created a new "test" project with "test" application and added the iPhone environment.
  2. Selected Run As > Run on MobileFirst Development Server

    This shows "mbp-idan.local"

  3. Selected Run As > Build Settings and Deploy Target, and changed the values as follows:

  4. Selected Run As > Run on MobileFirst Development Server

  5. Opened test\iphone\native\worklight.plist and I see the following:

    <dict> <key>protocol</key> <string>http</string> <key>host</key> <string>example.com</string> <key>port</key> <string>80</string> <key>wlServerContext</key> <string>/helloworld/</string>

这篇关于MobileFirst 7.1 OSX Eclipse服务器URL设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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