Remove launcher dependency from httpd
Allow httpd to build without the launcher by writing the generated gitweb config to $site_path/tmp. This location was added when plugins came about and therefore was not available when gitweb support started writing a generated configuration file. Change-Id: Id9bbb615c233f3426395972e5c049587a9956fbd
This commit is contained in:
@@ -64,12 +64,6 @@ limitations under the License.
|
||||
<artifactId>gwtjsonrpc</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.google.gerrit</groupId>
|
||||
<artifactId>gerrit-launcher</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.google.gerrit</groupId>
|
||||
<artifactId>gerrit-server</artifactId>
|
||||
|
||||
@@ -32,7 +32,6 @@ package com.google.gerrit.httpd.gitweb;
|
||||
import com.google.gerrit.common.data.GerritConfig;
|
||||
import com.google.gerrit.extensions.restapi.Url;
|
||||
import com.google.gerrit.httpd.GitWebConfig;
|
||||
import com.google.gerrit.launcher.GerritLauncher;
|
||||
import com.google.gerrit.reviewdb.client.Project;
|
||||
import com.google.gerrit.server.AnonymousUser;
|
||||
import com.google.gerrit.server.IdentifiedUser;
|
||||
@@ -140,7 +139,10 @@ class GitWebServlet extends HttpServlet {
|
||||
|
||||
private void makeSiteConfig(final SitePaths site,
|
||||
final GerritConfig gerritConfig) throws IOException {
|
||||
final File myconf = GerritLauncher.createTempFile("gitweb_config", ".perl");
|
||||
if (!site.tmp_dir.exists()) {
|
||||
site.tmp_dir.mkdirs();
|
||||
}
|
||||
File myconf = File.createTempFile("gitweb_config", ".perl", site.tmp_dir);
|
||||
|
||||
// To make our configuration file only readable or writable by us;
|
||||
// this reduces the chances of someone tampering with the file.
|
||||
|
||||
Reference in New Issue
Block a user