Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
d7321893
Commit
d7321893
authored
May 14, 2021
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CONNECT: move jar files to /usr/share and include them in DEBs
parent
9d0fde3b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
10 deletions
+14
-10
debian/mariadb-plugin-connect.install
debian/mariadb-plugin-connect.install
+4
-0
sql/mysqld.h
sql/mysqld.h
+1
-1
storage/connect/CMakeLists.txt
storage/connect/CMakeLists.txt
+2
-2
storage/connect/javaconn.cpp
storage/connect/javaconn.cpp
+7
-7
No files found.
debian/mariadb-plugin-connect.install
View file @
d7321893
etc
/
mysql
/
conf
.
d
/
connect
.
cnf
usr
/
lib
/
mysql
/
plugin
/
ha_connect
.
so
usr
/
share
/
mysql
/
Mongo2
.
jar
usr
/
share
/
mysql
/
Mongo3
.
jar
usr
/
share
/
mysql
/
JavaWrappers
.
jar
usr
/
share
/
mysql
/
JdbcInterface
.
jar
sql/mysqld.h
View file @
d7321893
...
...
@@ -536,7 +536,7 @@ extern ulonglong my_pcre_frame_size;
*/
extern
my_bool
opt_large_pages
;
extern
uint
opt_large_page_size
;
extern
char
lc_messages_dir
[
FN_REFLEN
];
extern
MYSQL_PLUGIN_IMPORT
char
lc_messages_dir
[
FN_REFLEN
];
extern
char
*
lc_messages_dir_ptr
,
*
log_error_file_ptr
;
extern
MYSQL_PLUGIN_IMPORT
char
reg_ext
[
FN_EXTLEN
];
extern
MYSQL_PLUGIN_IMPORT
uint
reg_ext_length
;
...
...
storage/connect/CMakeLists.txt
View file @
d7321893
...
...
@@ -412,11 +412,11 @@ IF(CONNECT_WITH_JDBC AND JAVA_FOUND AND JNI_FOUND)
INSTALL
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/mysql-test/connect/std_data/JavaWrappers.jar
${
CMAKE_CURRENT_BINARY_DIR
}
/JdbcInterface.jar
DESTINATION
${
INSTALL_
PLUGIN
DIR
}
COMPONENT connect-engine
)
DESTINATION
${
INSTALL_
MYSQLSHARE
DIR
}
COMPONENT connect-engine
)
IF
(
CONNECT_WITH_MONGO
)
INSTALL
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/mysql-test/connect/std_data/Mongo2.jar
${
CMAKE_CURRENT_SOURCE_DIR
}
/mysql-test/connect/std_data/Mongo3.jar
DESTINATION
${
INSTALL_
PLUGIN
DIR
}
COMPONENT connect-engine
)
DESTINATION
${
INSTALL_
MYSQLSHARE
DIR
}
COMPONENT connect-engine
)
ENDIF
()
ENDIF
()
storage/connect/javaconn.cpp
View file @
d7321893
...
...
@@ -57,8 +57,8 @@ extern "C" HINSTANCE s_hModule; // Saved module handle
extern
char
*
JvmPath
;
// The connect_jvm_path global variable value
extern
char
*
ClassPath
;
// The connect_class_path global variable value
char
*
GetPluginDir
(
void
);
char
*
GetJavaWrapper
(
void
);
// The connect_java_wrapper variable value
extern
MYSQL_PLUGIN_IMPORT
char
lc_messages_dir
[
FN_REFLEN
];
/***********************************************************************/
/* Static JAVAConn objects. */
...
...
@@ -401,23 +401,23 @@ bool JAVAConn::Open(PGLOBAL g)
}
// endif ClassPath
#if 0
// Java source will be compiled as a jar file installed in the
plugin
dir
// Java source will be compiled as a jar file installed in the
mysql share
dir
jpop->Append(sep);
jpop->Append(
GetPluginDir()
);
jpop->Append(
lc_messages_dir
);
jpop->Append("JdbcInterface.jar");
#endif // 0
// All wrappers are pre-compiled in JavaWrappers.jar in the
plugin
dir
// All wrappers are pre-compiled in JavaWrappers.jar in the
mysql share
dir
jpop
->
Append
(
sep
);
jpop
->
Append
(
GetPluginDir
()
);
jpop
->
Append
(
lc_messages_dir
);
jpop
->
Append
(
"JavaWrappers.jar"
);
#if defined(MONGO_SUPPORT)
jpop
->
Append
(
sep
);
jpop
->
Append
(
GetPluginDir
()
);
jpop
->
Append
(
lc_messages_dir
);
jpop
->
Append
(
"Mongo3.jar"
);
jpop
->
Append
(
sep
);
jpop
->
Append
(
GetPluginDir
()
);
jpop
->
Append
(
lc_messages_dir
);
jpop
->
Append
(
"Mongo2.jar"
);
#endif // MONGO_SUPPORT
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment