From 96c72a7bdab67528eb23841ec444bcc415a3c253 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Traizet?= <cedric.traizet@c-s.fr>
Date: Thu, 9 May 2019 11:07:38 +0200
Subject: [PATCH] ENH: remove java wrapping from packaging

---
 Packaging/CMakeLists.txt              |  1 -
 Packaging/install_java_bindings.cmake | 27 ---------------------------
 2 files changed, 28 deletions(-)
 delete mode 100644 Packaging/install_java_bindings.cmake

diff --git a/Packaging/CMakeLists.txt b/Packaging/CMakeLists.txt
index ca735ac2a3..18b1b9fc8b 100644
--- a/Packaging/CMakeLists.txt
+++ b/Packaging/CMakeLists.txt
@@ -136,7 +136,6 @@ include(cleanup_package)
 include(install_include_dirs)
 include(install_importlibs)
 include(install_python_bindings)
-include(install_java_bindings)
 include(install_share_dirs)
 include(install_cmake_files)
 include(install_qtdev_files)
diff --git a/Packaging/install_java_bindings.cmake b/Packaging/install_java_bindings.cmake
deleted file mode 100644
index 0c9d9358b0..0000000000
--- a/Packaging/install_java_bindings.cmake
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES)
-#
-# This file is part of Orfeo Toolbox
-#
-#     https://www.orfeo-toolbox.org/
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-function(install_java_bindings)
-  if(HAVE_JAVA)
-    install(FILES ${SUPERBUILD_INSTALL_DIR}/lib/otb/java/org.otb.application.jar
-      DESTINATION ${PKG_STAGE_DIR}/lib/java
-      )
-  endif()
-endfunction()
-- 
GitLab