-
-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6401 from pkriens/issue/6393-non-workspace-handli…
…ng-of-bndrun Fixes a number of errors in the bndrun handling
- Loading branch information
Showing
17 changed files
with
405 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
biz.aQute.bndlib.tests/testresources/bndtools-resolve-reproducer/UNLICENSE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
This is free and unencumbered software released into the public domain. | ||
|
||
Anyone is free to copy, modify, publish, use, compile, sell, or | ||
distribute this software, either in source code form or as a compiled | ||
binary, for any purpose, commercial or non-commercial, and by any | ||
means. | ||
|
||
In jurisdictions that recognize copyright laws, the author or authors | ||
of this software dedicate any and all copyright interest in the | ||
software to the public domain. We make this dedication for the benefit | ||
of the public at large and to the detriment of our heirs and | ||
successors. We intend this dedication to be an overt act of | ||
relinquishment in perpetuity of all present and future rights to this | ||
software under copyright law. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
For more information, please refer to <https://unlicense.org/>. |
1 change: 1 addition & 0 deletions
1
biz.aQute.bndlib.tests/testresources/bndtools-resolve-reproducer/bnd.bnd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#Bundle-Activator: org.example.bndtools.bndrun.reproducer.Activator |
17 changes: 17 additions & 0 deletions
17
biz.aQute.bndlib.tests/testresources/bndtools-resolve-reproducer/debug-standalone.bndrun
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
-include: ~run.bndrun | ||
-standalone: target/index.xml | ||
-resolve.effective: active | ||
-runfw: org.eclipse.osgi;version='3.21.0' | ||
-runee: JavaSE-17 | ||
-runproperties.debug: \ | ||
osgi.console=,\ | ||
osgi.console.enable.builtin=false | ||
-runrequires.debug: \ | ||
osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.shell)',\ | ||
osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.runtime)',\ | ||
osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.command)' | ||
-runbundles: \ | ||
org.apache.felix.gogo.command;version='[1.1.2,1.1.3)',\ | ||
org.apache.felix.gogo.runtime;version='[1.1.6,1.1.7)',\ | ||
org.apache.felix.gogo.shell;version='[1.1.4,1.1.5)',\ | ||
org.example.bndtools.bndrun.reproducer;version='[1.0.0,1.0.1)' |
11 changes: 11 additions & 0 deletions
11
biz.aQute.bndlib.tests/testresources/bndtools-resolve-reproducer/debug.bndrun
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
-include: ~run.bndrun | ||
-runproperties.debug: \ | ||
osgi.console=,\ | ||
osgi.console.enable.builtin=false | ||
-runrequires.debug: \ | ||
osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.runtime)',\ | ||
osgi.identity;filter:='(osgi.identity=org.apache.felix.gogo.command)' | ||
-runbundles: \ | ||
org.apache.felix.gogo.command;version='[1.1.2,1.1.3)',\ | ||
org.apache.felix.gogo.runtime;version='[1.1.6,1.1.7)',\ | ||
org.apache.felix.gogo.shell;version='[1.1.4,1.1.5)' |
120 changes: 120 additions & 0 deletions
120
biz.aQute.bndlib.tests/testresources/bndtools-resolve-reproducer/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>org.example</groupId> | ||
<artifactId>org.example.bndtools.bndrun.reproducer</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<properties> | ||
<maven.compiler.release>17</maven.compiler.release> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<bnd.version>7.1.0</bnd.version> | ||
</properties> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.eclipse.platform</groupId> | ||
<artifactId>org.eclipse.osgi</artifactId> | ||
<version>3.21.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.felix</groupId> | ||
<artifactId>org.apache.felix.gogo.shell</artifactId> | ||
<version>1.1.4</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.felix</groupId> | ||
<artifactId>org.apache.felix.gogo.runtime</artifactId> | ||
<version>1.1.6</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.felix</groupId> | ||
<artifactId>org.apache.felix.gogo.command</artifactId> | ||
<version>1.1.2</version> | ||
</dependency> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>biz.aQute.bnd</groupId> | ||
<artifactId>bnd-maven-plugin</artifactId> | ||
<version>${bnd.version}</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>bnd-process</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
<version>3.4.2</version> | ||
<configuration> | ||
<archive> | ||
<manifestFile> | ||
${project.build.outputDirectory}/META-INF/MANIFEST.MF | ||
</manifestFile> | ||
</archive> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>biz.aQute.bnd</groupId> | ||
<artifactId>bnd-indexer-maven-plugin</artifactId> | ||
<version>${bnd.version}</version> | ||
<configuration> | ||
<includeJar>true</includeJar> | ||
<localURLs>REQUIRED</localURLs> | ||
<attach>false</attach> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>index</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>biz.aQute.bnd</groupId> | ||
<artifactId>bnd-resolver-maven-plugin</artifactId> | ||
<version>${bnd.version}</version> | ||
<configuration> | ||
<failOnChanges>false</failOnChanges> | ||
<bndruns> | ||
<bndrun>run.bndrun</bndrun> | ||
<bndrun>debug.bndrun</bndrun> | ||
<bndrun>debug-standalone.bndrun</bndrun> | ||
</bndruns> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>resolve</id> | ||
<goals> | ||
<goal>resolve</goal> | ||
</goals> | ||
</execution> | ||
<execution> | ||
<id>verify</id> | ||
<goals> | ||
<goal>verify</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>biz.aQute.bnd</groupId> | ||
<artifactId>bnd-export-maven-plugin</artifactId> | ||
<version>${bnd.version}</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>export</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
5 changes: 5 additions & 0 deletions
5
biz.aQute.bndlib.tests/testresources/bndtools-resolve-reproducer/run.bndrun
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-resolve.effective: active | ||
-runfw: org.eclipse.osgi;version='3.21.0' | ||
-runee: JavaSE-17 | ||
-runrequires: bnd.identity;id='org.example.bndtools.bndrun.reproducer' | ||
-runbundles: org.example.bndtools.bndrun.reproducer;version='[1.0.0,1.0.1)' |
7 changes: 7 additions & 0 deletions
7
...ls-resolve-reproducer/src/main/java/org/example/bndtools/bndrun/reproducer/Activator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.example.bndtools.bndrun.reproducer; | ||
|
||
import org.osgi.framework.BundleActivator; | ||
import org.osgi.framework.BundleContext; | ||
|
||
public class Activator{ | ||
} |
Oops, something went wrong.