0

I'm creating a desktop manager for Wiremock. Wiremock is a standalone executable jar that reads mock mappings from a dir named "mappings" placed in the same jar directory and starts a http server in localhost.

I have created some mappings (.json files) and I have started my server with: java -jar /path/to/wiremock/wiremock.jar and it works properly. It reads nice my mappings (if you GET localhost:<port>/__admin you can see the mappings)

Now, I need to start the server from node-webkit. I do it this way:

var exec = require("child_process").exec;
exec("java -jar " +'"' +  WIREMOCK_PATH + "/wiremock.jar" + '"', callback);

And server is started, but mappings are not read! I'm executing the same jar file. Manually, from command line it works, but using exec and node-webkit, it doesn't.

I have changed all the permissions of Wiremock path to be all public and still not working.

Héctor
  • 24,444
  • 35
  • 132
  • 243

0 Answers0