incubator-ace-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ange...@apache.org
Subject svn commit: r1040545 - in /incubator/ace/trunk: ./ ace-launcher/ ace-launcher/src/ ace-launcher/src/main/ ace-launcher/src/main/java/ ace-launcher/src/main/java/org/ ace-launcher/src/main/java/org/apache/ ace-launcher/src/main/java/org/apache/ace/ ace-...
Date Tue, 30 Nov 2010 14:47:13 GMT
Author: angelos
Date: Tue Nov 30 14:47:13 2010
New Revision: 1040545

URL: http://svn.apache.org/viewvc?rev=1040545&view=rev
Log:
ACE-99 A very simple launcher that starts our managementagent; use -Ddiscovery and -Didentification
to set the necessary properties.

Added:
    incubator/ace/trunk/ace-launcher/
    incubator/ace/trunk/ace-launcher/pom.xml
    incubator/ace/trunk/ace-launcher/src/
    incubator/ace/trunk/ace-launcher/src/main/
    incubator/ace/trunk/ace-launcher/src/main/java/
    incubator/ace/trunk/ace-launcher/src/main/java/org/
    incubator/ace/trunk/ace-launcher/src/main/java/org/apache/
    incubator/ace/trunk/ace-launcher/src/main/java/org/apache/ace/
    incubator/ace/trunk/ace-launcher/src/main/java/org/apache/ace/launcher/
    incubator/ace/trunk/ace-launcher/src/main/java/org/apache/ace/launcher/Main.java
Modified:
    incubator/ace/trunk/pom.xml

Added: incubator/ace/trunk/ace-launcher/pom.xml
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-launcher/pom.xml?rev=1040545&view=auto
==============================================================================
--- incubator/ace/trunk/ace-launcher/pom.xml (added)
+++ incubator/ace/trunk/ace-launcher/pom.xml Tue Nov 30 14:47:13 2010
@@ -0,0 +1,62 @@
+<?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>
+
+  <parent>
+    <artifactId>ace-reactor</artifactId>
+    <groupId>org.apache.ace</groupId>
+    <version>0.8.0-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>ace-launcher</artifactId>
+  <!--<packaging>pom</packaging>-->
+
+  <name>Apache ACE - Launcher</name>
+
+
+  <build>
+    <!--<finalName>ace-launcher</finalName>-->
+    <plugins>
+      <plugin>
+        <artifactId>maven-assembly-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>make-my-jar-with-dependencies</id>
+            <phase>package</phase>
+            <goals>
+              <goal>single</goal>
+            </goals>
+            <configuration>
+              <descriptorRefs>
+                <descriptorRef>jar-with-dependencies</descriptorRef>
+              </descriptorRefs>
+              <appendAssemblyId>false</appendAssemblyId>
+              <archive>
+                <manifest>
+                  <mainClass>org.apache.ace.launcher.Main</mainClass>
+                </manifest>
+              </archive>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+
+  <dependencies>
+    <dependency>
+      <groupId>${project.groupId}</groupId>
+      <artifactId>ace-managementagent</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.felix</groupId>
+      <artifactId>org.apache.felix.framework</artifactId>
+      <version>3.0.6</version>
+    </dependency>
+  </dependencies>
+
+</project>
\ No newline at end of file

Added: incubator/ace/trunk/ace-launcher/src/main/java/org/apache/ace/launcher/Main.java
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/ace-launcher/src/main/java/org/apache/ace/launcher/Main.java?rev=1040545&view=auto
==============================================================================
--- incubator/ace/trunk/ace-launcher/src/main/java/org/apache/ace/launcher/Main.java (added)
+++ incubator/ace/trunk/ace-launcher/src/main/java/org/apache/ace/launcher/Main.java Tue Nov
30 14:47:13 2010
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.ace.launcher;
+
+import org.apache.ace.managementagent.Activator;
+import org.osgi.framework.launch.FrameworkFactory;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class Main {
+    public static void main(String[] args) throws Exception {
+        FrameworkFactory factory = (FrameworkFactory) Class.forName("org.apache.felix.framework.FrameworkFactory").newInstance();
+
+        List activators = new ArrayList();
+        activators.add(new Activator());
+        Map frameworkProperties = new HashMap();
+        frameworkProperties.put("felix.systembundle.activators", activators);
+
+        factory.newFramework(frameworkProperties).start();
+    }
+}

Modified: incubator/ace/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/pom.xml?rev=1040545&r1=1040544&r2=1040545&view=diff
==============================================================================
--- incubator/ace/trunk/pom.xml (original)
+++ incubator/ace/trunk/pom.xml Tue Nov 30 14:47:13 2010
@@ -19,8 +19,12 @@
     -->
 
     <modelVersion>4.0.0</modelVersion>
+  <modules>
+    <module>untitled</module>
+    <module>ace-launcher</module>
+  </modules>
 
-    <parent>
+  <parent>
         <groupId>org.apache</groupId>
         <artifactId>apache</artifactId>
         <version>6</version>



Mime
View raw message