-
-
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 #5907 from chrisrueger/improve-code-templates
Improve code templates
- Loading branch information
Showing
10 changed files
with
18 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<form> | ||
<p>Creates a project for defining an API using OSGi R6 standard annotations. The following dependencies are added to the build path:</p> | ||
<li>OSGi Annotation 6.0.1</li> | ||
<p>Creates a project for defining an API using OSGi standard annotations. The following dependencies are added to the build path:</p> | ||
<li>OSGi Annotation</li> | ||
</form> |
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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
<form> | ||
<p>Creates a project for developing Components with Declarative Services. The following dependencies are added to the build path:</p> | ||
<li>OSGi Annotation 6.0.1</li> | ||
<li>OSGi Core 5.0</li> | ||
<li>OSGi Compendium 5.0</li> | ||
<li>OSGi Annotation</li> | ||
<li>OSGi Core</li> | ||
<p>... and the following are added to the test path:</p> | ||
<li>JUnit 4</li> | ||
<li>Hamcrest Core 1.3</li> | ||
<li>JUnit</li> | ||
<li>Hamcrest Core</li> | ||
</form> |
9 changes: 4 additions & 5 deletions
9
org.bndtools.templates.osgi/resources/integration-test-help.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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
<form> | ||
<p>Creates a project for integration testing bundles inside an OSGi framework. The following dependencies are added to the build path:</p> | ||
<li>OSGi Annotation 6.0.1</li> | ||
<li>OSGi Core 6.0</li> | ||
<li>OSGi Compendium 6.0</li> | ||
<li>JUnit 4</li> | ||
<li>Mockito Core 1.9</li> | ||
<li>OSGi Annotation</li> | ||
<li>OSGi Core</li> | ||
<li>JUnit</li> | ||
<li>Mockito Core</li> | ||
</form> |
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 |
---|---|---|
@@ -1,10 +1,5 @@ | ||
-buildpath: osgi.annotation; version=6.0.1 | ||
-buildpath: osgi.core,\ | ||
osgi.annotation | ||
-baseline: * | ||
$if(javaLevel)$ | ||
javac.source: $javaLevel$ | ||
javac.target: $javaLevel$ | ||
$endif$ | ||
|
||
Bundle-Version: 1.0.0.\${tstamp} | ||
Export-Package: $basePackageName$ | ||
|
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 |
---|---|---|
@@ -1,15 +1,8 @@ | ||
-buildpath: \ | ||
osgi.annotation; version=6.0.1,\ | ||
osgi.core; version=6.0,\ | ||
osgi.cmpn; version=6.0 | ||
org.osgi.service.component.annotations,\ | ||
osgi.core,\ | ||
|
||
-testpath: \ | ||
\${junit} | ||
|
||
$if(javaLevel)$ | ||
javac.source: $javaLevel$ | ||
javac.target: $javaLevel$ | ||
$endif$ | ||
|
||
Bundle-Version: 0.0.0.\${tstamp} | ||
-privatepackage: $basePackageName$ |
3 changes: 0 additions & 3 deletions
3
org.bndtools.templates.osgi/resources/templates/ds/launch.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
19 changes: 1 addition & 18 deletions
19
org.bndtools.templates.osgi/resources/templates/integration-test/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 |
---|---|---|
@@ -1,38 +1,21 @@ | ||
# This is the version of JUnit that will be used at build time and run time | ||
junit: org.apache.servicemix.bundles.junit;version="[4.11,5)" | ||
|
||
# This is the version of Mockito that will be used at build time and run time | ||
mockito: org.mockito.mockito-core;version="[1.9,2)",\ | ||
org.objenesis;version="[2.1,3)" | ||
|
||
# Discover and run all test cases annotated with the @RunWith annotation | ||
Test-Cases: \${classes;CONCRETE;ANNOTATED;org.junit.runner.RunWith} | ||
|
||
# Build dependencies | ||
-buildpath: \ | ||
\${junit},\ | ||
\${mockito},\ | ||
osgi.annotation; version=6.0.1,\ | ||
osgi.core; version=6.0,\ | ||
osgi.cmpn; version=6.0 | ||
osgi.core,\ | ||
|
||
$if(javaLevel)$ | ||
javac.source: $javaLevel$ | ||
javac.target: $javaLevel$ | ||
$endif$ | ||
|
||
# We need JUnit and Mockito to resolve the test cases at runtime. | ||
# Other runtime dependencies should be added as necessary | ||
-runbundles: \ | ||
\${junit},\ | ||
\${mockito} | ||
|
||
Bundle-Version: 0.0.0.\${tstamp} | ||
-privatepackage: $basePackageName$ | ||
|
||
# Needed for Mockito's mocking to work | ||
-runsystempackages.objenesis: sun.misc,sun.reflect | ||
|
||
# Use Felix by default | ||
-runfw: org.apache.felix.framework;version=5 | ||
-runvm: -ea |
3 changes: 1 addition & 2 deletions
3
org.bndtools.templates.osgi/resources/templates/launch/felix-gogo/$fileName$
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
1 change: 0 additions & 1 deletion
1
org.bndtools.templates.template/resources/templates/bndrun/resources/template/$fileName$
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
-runee: JavaSE-1.8 | ||
-runprovidedcapabilities: \${native_capability} | ||
-resolve.effective: active; skip:="osgi.service" |