diff options
Diffstat (limited to 'sandbox/slaws/runtimecompat/1xlauncher')
-rw-r--r-- | sandbox/slaws/runtimecompat/1xlauncher/pom.xml | 17 | ||||
-rw-r--r-- | sandbox/slaws/runtimecompat/1xlauncher/src/main/java/launcher/OneXLauncher.java | 6 |
2 files changed, 22 insertions, 1 deletions
diff --git a/sandbox/slaws/runtimecompat/1xlauncher/pom.xml b/sandbox/slaws/runtimecompat/1xlauncher/pom.xml index ba1cd04311..4f7efb592f 100644 --- a/sandbox/slaws/runtimecompat/1xlauncher/pom.xml +++ b/sandbox/slaws/runtimecompat/1xlauncher/pom.xml @@ -26,6 +26,7 @@ </parent><version>1.0-SNAPSHOT</version> <artifactId>1x-launcher</artifactId> <name>Apache Tuscany SCA 1.x Launcher</name> + <packaging>bundle</packaging> <dependencies> <dependency> @@ -58,5 +59,21 @@ <build> <finalName>${artifactId}</finalName> + <plugins> + + <plugin> + <groupId>org.apache.felix</groupId> + <artifactId>maven-bundle-plugin</artifactId> + <extensions>true</extensions> + <configuration> + <instructions> + <Import-Package>org.apache.tuscany.sca.node;version="[1.6.0,1.6.0]"</Import-Package> + <Export-Package>launcher</Export-Package> + <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName> + </instructions> + </configuration> + </plugin> + + </plugins> </build> </project> diff --git a/sandbox/slaws/runtimecompat/1xlauncher/src/main/java/launcher/OneXLauncher.java b/sandbox/slaws/runtimecompat/1xlauncher/src/main/java/launcher/OneXLauncher.java index 251e5f1ff6..215b211d13 100644 --- a/sandbox/slaws/runtimecompat/1xlauncher/src/main/java/launcher/OneXLauncher.java +++ b/sandbox/slaws/runtimecompat/1xlauncher/src/main/java/launcher/OneXLauncher.java @@ -26,8 +26,12 @@ import org.apache.tuscany.sca.node.SCANodeFactory; public class OneXLauncher { public static void main(String[] args) throws Exception { + OneXLauncher.launchNode(); + } + + public static void launchNode(){ SCANode node = SCANodeFactory.newInstance().createSCANode("Calculator.composite", - new SCAContribution("calculator", "../1xcalculator.jar")); + new SCAContribution("calculator", "../1xcalculator.jar")); node.start(); |