Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-13630

storage/connect/CMakeLists.txt builds and installs jars files, even if engine is not built

    XMLWordPrintable

Details

    Description

      If Java and JNI are found, following code is executed in connect/CMakeLists.txt

         add_jar(JdbcInterface ${JAVA_SOURCES})
          INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/JavaWrappers.jar
            ${CMAKE_CURRENT_BINARY_DIR}/JdbcInterface.jar
      DESTINATION ${INSTALL_PLUGINDIR} COMPONENT connect-engine)
      

      This happens unconditionally also if the connect engine is NOT build.
      A good style that helps to avoid these kinds of problems is to do MYSQL_ADD_PLUGIN early and do RETURN() if plugin is not built

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            wlad Vladislav Vaintroub
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.