Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var FS = require("fs"),
- system = require("ringo/subprocess").system,
- addPackages = require("./add-package").main;
- var command = function (cmd) {
- // print(cmd)
- java.lang.Runtime.getRuntime().exec(cmd).waitFor();
- }
- /**
- * Install all dependencies from package.json
- */
- exports.main = function (args) {
- var json = FS.read("package.json"),
- info = JSON.parse(json);
- // remove the existing packages dir.
- system("rm", "-rf", FS.join("root", "WEB-INF", "packages"));
- // addPackages(info.dependencies);
- }
Add Comment
Please, Sign In to add comment