Browse Source

dbeaver/dbeaver-infra#74 add generator scripts and move rcp-gen.properties to product repos (#34263)

* dbeaver/dbeaver-infra#74 add generator scripts and move rcp-gen.properties to product repos

* dbeaver/dbeaver-infra#74 add copyright config to generator CE

* dbeaver/dbeaver-infra#74 move to .ide/idea instead

* dbeaver/dbeaver-infra#74 formatting

* dbeaver/dbeaver-infra#74 update vscode configs and rename rcp-gen.properties to osgi-app.properties

* dbeaver/dbeaver-infra#74 add tests

* dbeaver/dbeaver-infra#74 generate workspace per osgi-app.properties file

* dbeaver/dbeaver-infra#74 remove workspace from naming

---------

Co-authored-by: Serge Rider <[email protected]>
Georgii 1 year ago
parent
commit
b79abd48f2

+ 6 - 0
.ide/idea/copyright/DBeaver.xml

@@ -0,0 +1,6 @@
+<component name="CopyrightManager">
+  <copyright>
+    <option name="notice" value="DBeaver - Universal Database Manager&#10;Copyright (C) 2010-&amp;#36;today.year DBeaver Corp and others&#10;&#10;Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);&#10;you may not use this file except in compliance with the License.&#10;You may obtain a copy of the License at&#10;&#10;    http://www.apache.org/licenses/LICENSE-2.0&#10;&#10;Unless required by applicable law or agreed to in writing, software&#10;distributed under the License is distributed on an &quot;AS IS&quot; BASIS,&#10;WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.&#10;See the License for the specific language governing permissions and&#10;limitations under the License." />
+    <option name="myName" value="DBeaver" />
+  </copyright>
+</component>

+ 10 - 0
.ide/idea/copyright/profiles_settings.xml

@@ -0,0 +1,10 @@
+<component name="CopyrightManager">
+  <settings>
+    <module2copyright>
+      <element module="DBeaver" copyright="DBeaver" />
+    </module2copyright>
+    <LanguageOptions name="__TEMPLATE__">
+      <option name="addBlankAfter" value="false" />
+    </LanguageOptions>
+  </settings>
+</component>

+ 3 - 0
.ide/idea/scopes/DBeaver.xml

@@ -0,0 +1,3 @@
+<component name="DependencyValidationManager">
+  <scope name="DBeaver" pattern="file[org*]:*//*||file[dbeaver]:*/" />
+</component>

+ 3 - 0
generate_workspace.cmd

@@ -0,0 +1,3 @@
+SET mypath=%~dp0
+
+.\..\idea-rcp-launch-config-generator\runGenerator.cmd -f %mypath%

+ 1 - 0
generate_workspace.sh

@@ -0,0 +1 @@
+./../idea-rcp-launch-config-generator/runGenerator.sh -f $(dirname "$0")

+ 21 - 0
osgi-app.properties

@@ -0,0 +1,21 @@
+workspaceName=dbeaver-ce
+featuresPaths=\
+  dbeaver/features;
+bundlesPaths=\
+  dbeaver-common/modules;\
+  dbeaver/plugins;
+repositories=\
+  https://p2.dev.dbeaver.com/eclipse-repo/;\
+  https://download.eclipse.org/releases/${eclipse-version}/;
+testBundles=\
+  org.junit;\
+  org.mockito.mockito-core;\
+  junit-jupiter-api;\
+  org.opentest4j
+productsPaths=\
+  dbeaver/product/community/DBeaver.product;
+ideaConfigurationFilesPaths=\
+  dbeaver/.ide/idea/copyright;\
+  dbeaver/.ide/idea/scopes;
+testBundlePaths=\
+  dbeaver/test;

+ 2 - 1
test/org.jkiss.dbeaver.ext.hana.test/META-INF/MANIFEST.MF

@@ -16,4 +16,5 @@ Require-Bundle: org.eclipse.core.runtime,
  org.jkiss.dbeaver.headless,
  org.jkiss.dbeaver.model,
  org.jkiss.dbeaver.model.sql,
- org.jkiss.dbeaver.registry
+ org.jkiss.dbeaver.registry,
+ org.jkiss.dbeaver.ext.generic