From bda78345e58598af15866924726ac23e503df696 Mon Sep 17 00:00:00 2001 From: David E Jones Date: Wed, 1 Jun 2022 15:53:48 -0700 Subject: [PATCH] In build.gradle plusRuntimeWarTemp also copy opensearch files like elasticsearch, otherwise built in version does not work --- build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index ba12eb3ef..c2d5aab28 100644 --- a/build.gradle +++ b/build.gradle @@ -785,7 +785,11 @@ task plusRuntimeWarTemp { // add Procfile to root copy { from file('Procfile') into 'wartemp' } // special case: copy elasticsearch plugin/module jars (needed for ES installed in runtime/elasticsearch - copy { from fileTree(dir: '.', include: moquiRuntime+'/elasticsearch/**/*.jar') into wartempFile } + if (file(moquiRuntime+'/elasticsearch').exists()) + copy { from fileTree(dir: '.', include: moquiRuntime+'/elasticsearch/**/*.jar') into wartempFile } + // special case: copy opensearch plugin/module jars (needed for ES installed in runtime/opensearch + if (file(moquiRuntime+'/opensearch').exists()) + copy { from fileTree(dir: '.', include: moquiRuntime+'/opensearch/**/*.jar') into wartempFile } // special case: copy jackrabbit standalone jar (if exists) copy { from fileTree(dir: moquiRuntime + '/jackrabbit', include: 'jackrabbit-standalone-*.jar').files; into 'wartemp/' + moquiRuntime + '/jackrabbit' }