Skip to content

Instantly share code, notes, and snippets.

@gmosx
Created May 20, 2010 08:59
Show Gist options
  • Save gmosx/407365 to your computer and use it in GitHub Desktop.
Save gmosx/407365 to your computer and use it in GitHub Desktop.
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);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment