@@ -153,9 +153,10 @@ private void setupDirectories(URL directoryName) throws IOException, URISyntaxEx
153
153
final File pluginDirectory = new File (esDirectory , "plugins" );
154
154
final File analysisDirectory = new File (esDirectory , "config/analysis" );
155
155
final File painlessDirectory = new File (esDirectory , "modules/lang-painless" );
156
+ final File photonEsModuleDirectory = new File (esDirectory , "modules/photon-es" );
156
157
157
158
for (File directory : new File []{photonDirectory , esDirectory , pluginDirectory ,
158
- painlessDirectory , analysisDirectory }) {
159
+ painlessDirectory , analysisDirectory , photonEsModuleDirectory }) {
159
160
directory .mkdirs ();
160
161
}
161
162
@@ -175,9 +176,9 @@ private void setupDirectories(URL directoryName) throws IOException, URISyntaxEx
175
176
new File (analysisDirectory , "hyphenation_patterns.xml" ));
176
177
177
178
copyOrReplace ("modules/photon-es/photon-es.jar" ,
178
- new File (painlessDirectory , "photon-es.jar" ));
179
+ new File (photonEsModuleDirectory , "photon-es.jar" ));
179
180
copyOrReplace ("modules/photon-es/plugin-descriptor.properties" ,
180
- new File (painlessDirectory , "plugin-descriptor.properties" ));
181
+ new File (photonEsModuleDirectory , "plugin-descriptor.properties" ));
181
182
}
182
183
183
184
private void copyOrReplace (String resource , File destination ) throws IOException {
0 commit comments