MobileFirst 7.1 OSX Eclipse server url setting

微笑、不失礼 提交于 2019-12-02 22:29:27

问题


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:


回答1:


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>



来源:https://stackoverflow.com/questions/36831487/mobilefirst-7-1-osx-eclipse-server-url-setting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!