Skip to content

Commit 6c475c7

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

File tree

1 file changed

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

1 file changed

+4
-3
lines changed

Diff for: 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

@@ -179,9 +180,9 @@ private void setupDirectories(URL directoryName) throws IOException, URISyntaxEx
179180
new File(analysisDirectory, "hyphenation_patterns.xml"));
180181

181182
copyOrReplace("modules/photon-es/photon-es.jar",
182-
new File(painlessDirectory, "photon-es.jar"));
183+
new File(photonEsModuleDirectory, "photon-es.jar"));
183184
copyOrReplace("modules/photon-es/plugin-descriptor.properties",
184-
new File(painlessDirectory, "plugin-descriptor.properties"));
185+
new File(photonEsModuleDirectory, "plugin-descriptor.properties"));
185186
}
186187

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

0 commit comments

Comments
 (0)