Created
May 20, 2010 08:59
-
-
Save gmosx/407365 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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