Skip to content

Commit

Permalink
Leverage OSGi-DS component-xml file generation of PDE-DS/Tycho
Browse files Browse the repository at this point in the history
Remove all generated xml-files from git.
  • Loading branch information
HannesWell committed Aug 9, 2024
1 parent 4526f76 commit a80557c
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 69 deletions.
1 change: 1 addition & 0 deletions bundles/org.eclipse.equinox.ds.tests/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/scr_test
OSGI-INF/org.eclipse.equinox.*.xml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions bundles/org.eclipse.equinox.event/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/OSGI-INF/org.eclipse.equinox.*.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
dsVersion=V1_3
eclipse.preferences.version=1
enabled=true
generateBundleActivationPolicyLazy=true
path=OSGI-INF
validationErrorLevel=error
validationErrorLevel.missingImplicitUnbindMethod=error
2 changes: 1 addition & 1 deletion bundles/org.eclipse.equinox.event/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Export-Package: org.eclipse.equinox.internal.event;x-internal:=true,
Bundle-Vendor: %bundleVendor
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-17
Service-Component: OSGI-INF/component.xml
Service-Component: OSGI-INF/org.eclipse.equinox.internal.event.EventComponent.xml
Bundle-ActivationPolicy: lazy
Provide-Capability:
osgi.service;
Expand Down
7 changes: 0 additions & 7 deletions bundles/org.eclipse.equinox.event/OSGI-INF/component.xml

This file was deleted.

3 changes: 1 addition & 2 deletions bundles/org.eclipse.equinox.event/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
# IBM Corporation - initial API and implementation
###############################################################################
bin.includes = META-INF/,\
plugin*.properties,\
plugin.properties,\
about.html,\
.,\
OSGI-INF/component.xml,\
OSGI-INF/
output.. = bin/
src.includes = about.html
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2009, 2018 IBM Corporation and others.
* Copyright (c) 2009, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand All @@ -15,20 +15,24 @@

import org.eclipse.equinox.internal.event.mapper.EventRedeliverer;
import org.osgi.framework.BundleContext;
import org.osgi.service.component.annotations.*;
import org.osgi.service.event.Event;
import org.osgi.service.event.EventAdmin;

@Component(service = EventAdmin.class)
public class EventComponent implements EventAdmin {
private EventRedeliverer eventRedeliverer;
private EventAdminImpl eventAdmin;

@Activate
void activate(BundleContext context) {
eventAdmin = new EventAdminImpl(context);
eventAdmin.start();
eventRedeliverer = new EventRedeliverer(context, eventAdmin);
eventRedeliverer.open();
}

@Deactivate
void deactivate(BundleContext context) {
eventRedeliverer.close();
eventAdmin.stop();
Expand Down

0 comments on commit a80557c

Please sign in to comment.