Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions all/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target/
27 changes: 27 additions & 0 deletions all/bnd.bnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#-conditionalpackage: org.eclipse.osgi.technology.command.*

Bundle-Activator: org.eclipse.osgi.technology.command.all.Activator

-includeresource: \
converter.bundle-0.0.1-SNAPSHOT.jar;lib:=true,\
converter.file-0.0.1-SNAPSHOT.jar;lib:=true,\
diagnostics-0.0.1-SNAPSHOT.jar;lib:=true,\
fs.navigate-0.0.1-SNAPSHOT.jar;lib:=true,\
help-0.0.1-SNAPSHOT.jar;lib:=true,\
mxbeans-0.0.1-SNAPSHOT.jar;lib:=true,\
osgi.framework-0.0.1-SNAPSHOT.jar;lib:=true,\
osgi.framework.modify-0.0.1-SNAPSHOT.jar;lib:=true,\
osgi.service.jakartars-0.0.1-SNAPSHOT.jar;lib:=true,\
osgi.service.scr-0.0.1-SNAPSHOT.jar;lib:=true,\
osgi.service.servlet-0.0.1-SNAPSHOT.jar;lib:=true,\
system.runtime-0.0.1-SNAPSHOT.jar;lib:=true


Import-Package: \
org.osgi.service.jakartars.runtime;'resolution:'=optional,\
org.osgi.service.jakartars.runtime.dto;'resolution:'=optional,\
org.osgi.service.component.runtime;'resolution:'=optional,\
org.osgi.service.component.runtime.dto;'resolution:'=optional,\
org.osgi.service.servlet.runtime;'resolution:'=optional,\
org.osgi.service.servlet.runtime.dto;'resolution:'=optional,\
*
197 changes: 197 additions & 0 deletions all/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/*********************************************************************
* Copyright (c) 2025 Contributors to the Eclipse Foundation.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.osgi-technology.command</groupId>
<artifactId>command</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>all</artifactId>


<pluginRepositories>
<pluginRepository>
<id>bnd-snapshots</id>
<url>https://bndtools.jfrog.io/bndtools/libs-snapshot/</url>
<layout>default</layout>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
</pluginRepositories>

<dependencies>
<dependency>
<groupId>org.eclipse.osgi-technology.command</groupId>
<artifactId>converter.bundle</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>


<dependency>
<groupId>org.eclipse.osgi-technology.command</groupId>
<artifactId>converter.file</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>


<dependency>
<groupId>org.eclipse.osgi-technology.command</groupId>
<artifactId>diagnostics</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>


<dependency>
<groupId>org.eclipse.osgi-technology.command</groupId>
<artifactId>fs.navigate</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>


<dependency>
<groupId>org.eclipse.osgi-technology.command</groupId>
<artifactId>help</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>


<dependency>
<groupId>org.eclipse.osgi-technology.command</groupId>
<artifactId>mxbeans</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>


<dependency>
<groupId>org.eclipse.osgi-technology.command</groupId>
<artifactId>osgi.framework</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>


<dependency>
<groupId>org.eclipse.osgi-technology.command</groupId>
<artifactId>osgi.framework.modify</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>


<dependency>
<groupId>org.eclipse.osgi-technology.command</groupId>
<artifactId>osgi.service.jakartars</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.eclipse.osgi-technology.command</groupId>
<artifactId>osgi.service.scr</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>


<dependency>
<groupId>org.eclipse.osgi-technology.command</groupId>
<artifactId>osgi.service.servlet</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.eclipse.osgi-technology.command</groupId>
<artifactId>system.runtime</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.eclipse.osgi-technology.command</groupId>
<artifactId>util</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>


<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.util.tracker</artifactId>
</dependency>

<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.gogo.runtime</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.resource</artifactId>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.dto</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.framework</artifactId>
</dependency>

<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.annotation.bundle</artifactId>
</dependency>

<dependency>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.annotation.versioning</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>org.eclipse.osgi-technology.console</groupId>
<artifactId>plain</artifactId>
<version>0.0.1-SNAPSHOT</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.12.1</version>
<scope>test</scope>
</dependency>


</dependencies>
<build>
<plugins>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>7.2.0-SNAPSHOT</version>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/**
* Copyright (c) 2025 Contributors to the Eclipse Foundation
* All rights reserved.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Stefan Bischof - initial
*/
package org.eclipse.osgi.technology.command.all;

import java.util.List;

import org.osgi.annotation.bundle.Header;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.framework.Constants;

@Header(name = Constants.BUNDLE_ACTIVATOR, value = "${@class}")
@org.osgi.annotation.bundle.Capability(namespace = "org.apache.felix.gogo", name = "command.implementation", version = "1.0.0")
@org.osgi.annotation.bundle.Requirement(effective = "active", namespace = "org.apache.felix.gogo", name = "runtime.implementation", version = "1.0.0")
public class Activator implements BundleActivator {

private List<BundleActivator> activators = List.of(
new org.eclipse.osgi.technology.command.converter.bundle.Activator(),
new org.eclipse.osgi.technology.command.converter.file.Activator(),
new org.eclipse.osgi.technology.command.diagnostics.Activator(),
new org.eclipse.osgi.technology.command.fs.navigate.Activator(),
new org.eclipse.osgi.technology.command.help.Activator(),
new org.eclipse.osgi.technology.command.mxbean.Activator(),
new org.eclipse.osgi.technology.command.osgi.framework.Activator(),
new org.eclipse.osgi.technology.command.osgi.framework.modify.Activator(),
new org.eclipse.osgi.technology.command.osgi.service.jakartars.Activator(),
new org.eclipse.osgi.technology.command.osgi.service.scr.Activator(),
new org.eclipse.osgi.technology.command.osgi.service.servlet.Activator(),
new org.eclipse.osgi.technology.command.system.runtime.Activator());

@Override
public void start(BundleContext context) throws Exception {

activators.forEach(a -> {

try {
a.start(context);
} catch (Exception e) {
e.printStackTrace();
}

});
}

@Override
public void stop(BundleContext context) throws Exception {
activators.forEach(a -> {

try {
a.stop(context);
} catch (Exception e) {
e.printStackTrace();
}

});
}
}
3 changes: 2 additions & 1 deletion osgi.framework.modify/play.bndrun
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
org.eclipse.osgi-technology.console.plain;version='[0.0.1,0.0.2)',\
junit-platform-engine;version='[1.11.1,1.11.2)',\
org.eclipse.osgi-technology.command.osgi.framework.modify;version='[0.0.1,0.0.2)',\
org.eclipse.osgi-technology.command.osgi.framework.modify-tests;version='[0.0.1,0.0.2)'
org.eclipse.osgi-technology.command.osgi.framework.modify-tests;version='[0.0.1,0.0.2)',\
org.eclipse.osgi-technology.command.osgi.framework;version='[0.0.1,0.0.2)'
-runee: JavaSE-17
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Contributors:
* Stefan Bischof - initial
*/
package org.eclipse.osgi.technology.command.osgi.framework;
package org.eclipse.osgi.technology.command.osgi.framework.modify;

import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Contributors:
* Stefan Bischof - initial
*/
package org.eclipse.osgi.technology.command.osgi.framework;
package org.eclipse.osgi.technology.command.osgi.framework.modify;

import java.io.File;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Contributors:
* Stefan Bischof - initial
*/
package org.eclipse.osgi.technology.command.osgi.framework;
package org.eclipse.osgi.technology.command.osgi.framework.modify;

public class Test {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* Copyright (c) 2025 Contributors to the Eclipse Foundation
* All rights reserved.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Stefan Bischof - initial
*/
@org.osgi.annotation.bundle.Export
package org.eclipse.osgi.technology.command.osgi.framework;
9 changes: 7 additions & 2 deletions osgi.service.scr/play.bndrun
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
bnd.identity;id='org.eclipse.osgi-technology.command.${project.artifactId}-tests',\
bnd.identity;id='org.eclipse.osgi-technology.command.${project.artifactId}',\
bnd.identity;id='org.eclipse.osgi-technology.console.plain',\
bnd.identity;id=junit-platform-engine
bnd.identity;id=junit-platform-engine,\
bnd.identity;id='org.apache.felix.scr'

-runfw: org.apache.felix.framework
-runbundles: \
Expand All @@ -15,5 +16,9 @@
org.eclipse.osgi-technology.console.plain;version='[0.0.1,0.0.2)',\
junit-platform-engine;version='[1.11.1,1.11.2)',\
org.eclipse.osgi-technology.command.osgi.service.scr;version='[0.0.1,0.0.2)',\
org.eclipse.osgi-technology.command.osgi.service.scr-tests;version='[0.0.1,0.0.2)'
org.eclipse.osgi-technology.command.osgi.service.scr-tests;version='[0.0.1,0.0.2)',\
org.apache.felix.scr;version='[2.2.2,2.2.3)',\
org.osgi.service.component;version='[1.5.1,1.5.2)',\
org.osgi.util.function;version='[1.0.0,1.0.1)',\
org.osgi.util.promise;version='[1.0.0,1.0.1)'
-runee: JavaSE-17
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ public class Activator extends AbstractActivator {
@Override
protected void init() {
registerCommandService(new ScrCommands(context, formatter), "tech", Map.of());
registerConverterService(new HttpWhiteboardConverter(formatter));
registerConverterService(new ScrConverter(formatter));
}

private static class HttpWhiteboardConverter extends BaseDTOFormatterConverter {
private static class ScrConverter extends BaseDTOFormatterConverter {

public HttpWhiteboardConverter(DTOFormatter formatter) {
public ScrConverter(DTOFormatter formatter) {
super(formatter);
}
}
Expand Down
Loading
Loading