Skip to content

Commit 9f0072c

Browse files
committed
Fix wrong copy destination for photon-es module
Signed-off-by: Holger Bruch <[email protected]>
1 parent c86d81d commit 9f0072c

File tree

1 file changed

+4
-3
lines changed
  • src/main/java/de/komoot/photon/elasticsearch

1 file changed

+4
-3
lines changed

src/main/java/de/komoot/photon/elasticsearch/Server.java

+4-3
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,10 @@ private void setupDirectories(URL directoryName) throws IOException, URISyntaxEx
153153
final File pluginDirectory = new File(esDirectory, "plugins");
154154
final File analysisDirectory = new File(esDirectory, "config/analysis");
155155
final File painlessDirectory = new File(esDirectory, "modules/lang-painless");
156+
final File photonEsModuleDirectory = new File(esDirectory, "modules/photon-es");
156157

157158
for (File directory : new File[]{photonDirectory, esDirectory, pluginDirectory,
158-
painlessDirectory, analysisDirectory}) {
159+
painlessDirectory, analysisDirectory, photonEsModuleDirectory}) {
159160
directory.mkdirs();
160161
}
161162

@@ -175,9 +176,9 @@ private void setupDirectories(URL directoryName) throws IOException, URISyntaxEx
175176
new File(analysisDirectory, "hyphenation_patterns.xml"));
176177

177178
copyOrReplace("modules/photon-es/photon-es.jar",
178-
new File(painlessDirectory, "photon-es.jar"));
179+
new File(photonEsModuleDirectory, "photon-es.jar"));
179180
copyOrReplace("modules/photon-es/plugin-descriptor.properties",
180-
new File(painlessDirectory, "plugin-descriptor.properties"));
181+
new File(photonEsModuleDirectory, "plugin-descriptor.properties"));
181182
}
182183

183184
private void copyOrReplace(String resource, File destination) throws IOException {

0 commit comments

Comments
 (0)