commit | 0bf2e4ef10bc654bd4e8c7354fdffbb841512793 | [log] [tgz] |
---|---|---|
author | Christian Aistleitner <christian@quelltextlich.at> | Sat Jun 06 17:37:28 2015 +0200 |
committer | Christian Aistleitner <christian@quelltextlich.at> | Sat Jun 06 17:37:28 2015 +0200 |
tree | 2701bcb1b9d5289288564f3700218f65f84ceac0 | |
parent | 6528001ebd61ac5883a00274856dcfffa0c2c7ee [diff] |
Switch to using Path instead of File for sitePaths Gerrit core changed SitePaths to yield Paths instead of Files. Hence, we follow that move. Change-Id: Ibdac674adb7ebdf58f9e3d4752db8e8be7a5fd04
diff --git a/src/main/java/com/googlesource/gerrit/plugins/motd/MotdFileBasedConfig.java b/src/main/java/com/googlesource/gerrit/plugins/motd/MotdFileBasedConfig.java index 07e5772..7d79d8b 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/motd/MotdFileBasedConfig.java +++ b/src/main/java/com/googlesource/gerrit/plugins/motd/MotdFileBasedConfig.java
@@ -43,7 +43,7 @@ @Inject public MotdFileBasedConfig(final SitePaths site) throws ConfigInvalidException, IOException { - this.cfgPath = new File(site.etc_dir, "motd.config"); + this.cfgPath = new File(site.etc_dir.toFile(), "motd.config"); log.info("Loading configuration from " + cfgPath); this.config = new FileBasedConfig(cfgPath, FS.DETECTED); this.subnets = allSubnets();