提交 58a6f4ae 编写于 作者: S serge-rider

dbeaver/dbeaver#14882 WinStore packaging fix + JNA boot path patch

上级 9a4b73fa
......@@ -37,17 +37,9 @@
<plugin id="org.eclipse.ui.ide.application" download-size="0" install-size="0" version="0.0.0" unpack="false"/>
<!-- EGit and other requirements -->
<plugin id="org.eclipse.ui.net" download-size="0" install-size="0" version="0.0.0"/>
<plugin id="org.eclipse.jsch.core" download-size="0" install-size="0" version="0.0.0"/>
<plugin id="org.eclipse.jsch.ui" download-size="0" install-size="0" version="0.0.0"/>
<plugin id="org.eclipse.core.variables" download-size="0" install-size="0" version="0.0.0"/>
<!-- Include org.eclipse.ui.themes because it was added only in 4.4 -->
<plugin id="org.eclipse.ui.themes" download-size="0" install-size="0" version="0.0.0"/>
<!-- Custom stuff -->
<plugin id="org.apache.commons.cli" download-size="0" install-size="0" version="0.0.0" unpack="false"/>
<plugin id="org.jkiss.dbeaver.ui.app.winstore" os="win32" arch="x86_64" download-size="0" install-size="0" version="0.0.0" unpack="false"/>
</feature>
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Vendor: DBeaver Corp
Bundle-Name: DBeaver Windows Store extension
Bundle-SymbolicName: org.jkiss.dbeaver.ui.app.winstore;singleton:=true
Bundle-ActivationPolicy: lazy
Bundle-Version: 1.0.0.qualifier
Bundle-Release-Date: 20220207
Bundle-RequiredExecutionEnvironment: JavaSE-11
Bundle-ClassPath: .
Require-Bundle: org.jkiss.dbeaver.model
Automatic-Module-Name: org.jkiss.dbeaver.ui.app.winstore
source.. = src/
output.. = target/classes/
bin.includes = .,\
META-INF/,\
plugin.xml
<?xml version="1.0" encoding="utf-8"?>
<?eclipse version="3.2"?>
<!--
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2022 DBeaver Corp and others
*
* 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.
-->
<plugin>
<extension point="org.jkiss.dbeaver.pluginService">
<service class="org.jkiss.dbeaver.winstore.WinStoreService"/>
</extension>
</plugin>
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jkiss.dbeaver</groupId>
<artifactId>plugins</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<artifactId>org.jkiss.dbeaver.ui.app.winstore</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>eclipse-plugin</packaging>
</project>
/*
* DBeaver - Universal Database Manager
* Copyright (C) 2010-2022 DBeaver Corp and others
*
* 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.
*/
package org.jkiss.dbeaver.winstore;
import org.jkiss.dbeaver.Log;
import org.jkiss.dbeaver.runtime.IPluginService;
import org.jkiss.dbeaver.utils.SystemVariablesResolver;
public class WinStoreService implements IPluginService {
private static final Log log = Log.getLog(WinStoreService.class);
@Override
public void activateService() {
// Modify JNI binaries path
String installPath = SystemVariablesResolver.getInstallPath();
System.setProperty("jna.boot.library.path", installPath);
log.debug("JNA boot path set to " + installPath);
}
@Override
public void deactivateService() {
}
}
......@@ -82,6 +82,7 @@
<module>org.jkiss.dbeaver.core</module>
<module>org.jkiss.dbeaver.ui.app.standalone</module>
<module>org.jkiss.dbeaver.ui.app.eclipse</module>
<module>org.jkiss.dbeaver.ui.app.winstore</module>
<module>org.jkiss.dbeaver.ext.athena.ui</module>
<module>org.jkiss.dbeaver.ext.bigquery.ui</module>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册