Guest User

Untitled

a guest
May 26th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. var FS = require("fs"),
  2. system = require("ringo/subprocess").system,
  3. addPackages = require("./add-package").main;
  4.  
  5. var command = function (cmd) {
  6. // print(cmd)
  7. java.lang.Runtime.getRuntime().exec(cmd).waitFor();
  8. }
  9.  
  10. /**
  11. * Install all dependencies from package.json
  12. */
  13. exports.main = function (args) {
  14. var json = FS.read("package.json"),
  15. info = JSON.parse(json);
  16.  
  17. // remove the existing packages dir.
  18. system("rm", "-rf", FS.join("root", "WEB-INF", "packages"));
  19.  
  20. // addPackages(info.dependencies);
  21. }
Add Comment
Please, Sign In to add comment