in createmobilespec/createmobilespec.js [58:75]
function pluginAdd(pluginName, searchPath, extraFlags) {
if (!pluginName) {
return;
}
if (!searchPath || typeof searchPath !== "string") {
searchPath = '';
}
var command = cli + ' plugin add ' + pluginName;
if (fs.existsSync(path.join(searchPath, pluginName, 'plugin.xml'))) {
command = cli + ' plugin add ' + path.join(searchPath, pluginName);
} else if (searchPath && searchPath.length) {
command = cli + ' plugin add ' + pluginName + ' --searchpath ' + searchPath;
}
if (extraFlags) {
command += extraFlags;
}
executeShellCommand(command);
}