daily pastebin goal
55%
SHARE
TWEET

Untitled

a guest May 26th, 2018 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top