@@ -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
@@ -179,9 +180,9 @@ private void setupDirectories(URL directoryName) throws IOException, URISyntaxEx
179
180
new File (analysisDirectory , "hyphenation_patterns.xml" ));
180
181
181
182
copyOrReplace ("modules/photon-es/photon-es.jar" ,
182
- new File (painlessDirectory , "photon-es.jar" ));
183
+ new File (photonEsModuleDirectory , "photon-es.jar" ));
183
184
copyOrReplace ("modules/photon-es/plugin-descriptor.properties" ,
184
- new File (painlessDirectory , "plugin-descriptor.properties" ));
185
+ new File (photonEsModuleDirectory , "plugin-descriptor.properties" ));
185
186
}
186
187
187
188
private void copyOrReplace (String resource , File destination ) throws IOException {
0 commit comments