Merge "Package core plugins in Gerrit war and install them on init"

This commit is contained in:
Edwin Kempin
2012-07-30 02:58:04 -07:00
committed by gerrit code review
9 changed files with 307 additions and 30 deletions

View File

@@ -148,6 +148,11 @@ public class PluginLoader implements LifecycleListener {
}
}
public static File storeInTemp(String pluginName, InputStream in,
SitePaths sitePaths) throws IOException {
return asTemp(in, tempNameFor(pluginName), ".jar", sitePaths.tmp_dir);
}
private static File asTemp(InputStream in,
String prefix, String suffix,
File dir) throws IOException {