Search code examples
antibm-mobilefirstworklight-server

wlServerContext value coming '/' after building the environment file from ant script


I built my project by using "build-app" ant task. After build is finished I noticed that value of wlServerContext attribute in "wlclient.properties" and "worklight.plist" is coming '/' instead of '/MyProject/'. If I build my project from eclipse then everything is coming just fine. I am using Worklight 6.2 Consumer Edition.


Solution

  • In the worklightserverhost attribute, you must include the project name which will be your context root. Try this: worklightserverhost="${wl.server.protocol}://${wl.server.ip}:${wl.server.port}/${wl.runtime.name}"