[jboss-svn-commits] JBL Code SVN: r24304 - in labs/jbossesb/workspace/skeagh: examples and 16 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Dec 8 13:13:33 EST 2008


Author: tfennelly
Date: 2008-12-08 13:13:33 -0500 (Mon, 08 Dec 2008)
New Revision: 24304

Added:
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/README.TXT
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/pom.xml
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/org/
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/org/jboss/
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/org/jboss/esb/
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/org/jboss/esb/felix/
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/org/jboss/esb/felix/BundleDescriptor.java
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/org/jboss/esb/felix/FelixRunner.java
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/overview.html
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/resources/
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/resources/bundles.properties
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/resources/jbossesb.felix.properties
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/test/
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/test/java/
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/test/java/org/
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/test/java/org/jboss/
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/test/java/org/jboss/esb/
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/test/java/org/jboss/esb/felix/
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/test/java/org/jboss/esb/felix/FelixRunnerTest.java
   labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/test/resources/
   labs/jbossesb/workspace/skeagh/examples/util/pom.xml
Modified:
   labs/jbossesb/workspace/skeagh/commons/src/main/java/org/jboss/esb/properties/TokenReplacer.java
   labs/jbossesb/workspace/skeagh/examples/pom.xml
Log:
https://jira.jboss.org/jira/browse/JBESB-2221

Modified: labs/jbossesb/workspace/skeagh/commons/src/main/java/org/jboss/esb/properties/TokenReplacer.java
===================================================================
--- labs/jbossesb/workspace/skeagh/commons/src/main/java/org/jboss/esb/properties/TokenReplacer.java	2008-12-08 15:19:58 UTC (rev 24303)
+++ labs/jbossesb/workspace/skeagh/commons/src/main/java/org/jboss/esb/properties/TokenReplacer.java	2008-12-08 18:13:33 UTC (rev 24304)
@@ -55,7 +55,7 @@
     /**
      * Regular expression replacement token pattern.
      */
-    String PATTERN_EXPRESSION = "\\$\\{[.:.\\w]+\\}";
+    String PATTERN_EXPRESSION = "\\$\\{[^}]+\\}";
 
     /**
      * Get the identifier for the TokenReplacer.
@@ -88,7 +88,7 @@
         /**
          * Static compiled Pattern instance.
          */
-        private static final Pattern PATTERN_MATCHER = Pattern.compile(PATTERN_EXPRESSION);
+        private static final Pattern PATTERN_MATCHER = Pattern.compile(PATTERN_EXPRESSION, Pattern.DOTALL);
 
         /**
          * Replace {@link TokenReplacer#PATTERN_EXPRESSION} tokens in the provided String.

Modified: labs/jbossesb/workspace/skeagh/examples/pom.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/pom.xml	2008-12-08 15:19:58 UTC (rev 24303)
+++ labs/jbossesb/workspace/skeagh/examples/pom.xml	2008-12-08 18:13:33 UTC (rev 24304)
@@ -20,6 +20,7 @@
     <url>http://www.jboss.org/jbossesb/</url>
 
     <modules>
+        <module>util</module>
         <module>jms-routing</module>
         <module>file-routing</module>
         <module>jms-bus</module>

Added: labs/jbossesb/workspace/skeagh/examples/util/felix-runner/README.TXT
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/util/felix-runner/README.TXT	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/util/felix-runner/README.TXT	2008-12-08 18:13:33 UTC (rev 24304)
@@ -0,0 +1 @@
+Born out of frustration with PAX Runner.
\ No newline at end of file

Added: labs/jbossesb/workspace/skeagh/examples/util/felix-runner/pom.xml
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/util/felix-runner/pom.xml	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/util/felix-runner/pom.xml	2008-12-08 18:13:33 UTC (rev 24304)
@@ -0,0 +1,33 @@
+<?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/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>jboss.jbossesb</groupId>
+        <artifactId>jbossesb</artifactId>
+        <version>5.0-SNAPSHOT</version>
+    </parent>
+    <name>JBoss ESB Commons</name>
+    <groupId>jboss.jbossesb</groupId>
+    <artifactId>jbossesb-examples-felix-runner</artifactId>
+    <version>${jboss.esb.version}</version>
+    <url>http://www.jboss.org/jbossesb/</url>
+	<packaging>jar</packaging>
+
+    <dependencies>
+
+        <dependency>
+            <groupId>jboss.jbossesb</groupId>
+            <artifactId>jbossesb-commons</artifactId>
+            <version>${jboss.esb.version}</version>
+        </dependency>
+
+        <dependency>
+			<groupId>org.apache.felix</groupId>
+			<artifactId>org.apache.felix.main</artifactId>
+			<version>1.2.1</version>
+		</dependency>
+
+    </dependencies>
+
+</project>


Property changes on: labs/jbossesb/workspace/skeagh/examples/util/felix-runner/pom.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native

Added: labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/org/jboss/esb/felix/BundleDescriptor.java
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/org/jboss/esb/felix/BundleDescriptor.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/org/jboss/esb/felix/BundleDescriptor.java	2008-12-08 18:13:33 UTC (rev 24304)
@@ -0,0 +1,95 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2008, JBoss Inc.
+ */
+package org.jboss.esb.felix;
+
+/**
+ * OSGi bundle descriptor.
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public class BundleDescriptor
+{
+    /**
+     * Bundle group ID.
+     */
+    private String groupId;
+    /**
+     * Bundle artifact ID.
+     */
+    private String artifactId;
+    /**
+     * Bundle version.
+     */
+    private String version;
+
+    /**
+     * Get the bundle group ID.
+     * @return The bundle group ID.
+     */
+    public final String getGroupId()
+    {
+        return groupId;
+    }
+
+    /**
+     * Set the bundle group ID.
+     * @param groupId The bundle group ID.
+     */
+    public final void setGroupId(final String groupId)
+    {
+        this.groupId = groupId;
+    }
+
+    /**
+     * Get the bundle artifact ID.
+     * @return The bundle artifact ID.
+     */
+    public final String getArtifactId()
+    {
+        return artifactId;
+    }
+
+    /**
+     * Set the bundle artifact ID.
+     * @param artifactId The bundle artifact ID.
+     */
+    public final void setArtifactId(final String artifactId)
+    {
+        this.artifactId = artifactId;
+    }
+
+    /**
+     * Get the bundle version.
+     * @return The bundle version.
+     */
+    public final String getVersion()
+    {
+        return version;
+    }
+
+    /**
+     * Set the bundle version.
+     * @param version The bundle version.
+     */
+    public final void setVersion(final String version)
+    {
+        this.version = version;
+    }
+}


Property changes on: labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/org/jboss/esb/felix/BundleDescriptor.java
___________________________________________________________________
Name: svn:eol-style
   + native

Added: labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/org/jboss/esb/felix/FelixRunner.java
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/org/jboss/esb/felix/FelixRunner.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/org/jboss/esb/felix/FelixRunner.java	2008-12-08 18:13:33 UTC (rev 24304)
@@ -0,0 +1,237 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2008, JBoss Inc.
+ */
+package org.jboss.esb.felix;
+
+import org.apache.felix.main.AutoActivator;
+import org.apache.felix.framework.util.StringMap;
+import org.apache.felix.framework.Felix;
+import org.osgi.framework.BundleException;
+import org.jboss.esb.properties.ApplicationProperties;
+
+import java.io.IOException;
+import java.util.List;
+import java.util.Properties;
+import java.util.Map;
+import java.util.Set;
+import java.util.ArrayList;
+
+/**
+ * Felix Runner.
+ * <p/>
+ * 
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public class FelixRunner
+{
+    /**
+     * The core Felix properties.
+     */
+    private Properties felixCoreProps;
+    /**
+     * The Bundles configured on this runner instance.
+     */
+    private List<BundleDescriptor> bundles;
+    /**
+     * The running Felix instance.
+     */
+    private Felix felix;
+
+    /**
+     * Public constructor.
+     */
+    public FelixRunner() throws IOException
+    {
+        felixCoreProps = loadProperties("/jbossesb.felix.properties");
+        loadCoreBundles();
+    }
+
+    /**
+     * Main method.
+     * @param args Main args.
+     */
+    public static void main(final String[] args) throws IOException, BundleException
+    {
+        FelixRunner runner = new FelixRunner();
+        runner.getBundles().addAll(loadBundleDescriptors(System.getProperties()));
+        runner.start();
+    }
+
+    /**
+     * Add the supplied bundle to the list of bundles associated with the runner
+     * instance.
+     *
+     * @param bundle The bundle to be added.
+     */
+    public final void addBundle(final BundleDescriptor bundle)
+    {
+        assertFelixNotRunning();
+
+        if(bundle == null)
+        {
+            throw new IllegalArgumentException("null 'bundle' arg in method call.");
+        }
+        bundles.add(bundle);
+    }
+
+    /**
+     * Get the list of bundles attached to the runner instance.
+     * @return The list of bundles attached to the runner instance.
+     */
+    public final List<BundleDescriptor> getBundles()
+    {
+        assertFelixNotRunning();
+        return bundles;
+    }
+
+    /**
+     * Start the runner instance (Felix).
+     */
+    public final void start() throws BundleException
+    {
+        assertFelixNotRunning();
+
+        Properties configProps = (Properties) felixCoreProps.clone();
+
+        addBundles(configProps);
+
+        // The following code is lifted from the Main class in the Felix framework...
+        List list = new ArrayList();
+        list.add(new AutoActivator(configProps));
+        // Create a case-insensitive property map.
+        Map configMap = new StringMap(configProps, false);
+        // Create an instance of the framework.
+        felix = new Felix(configMap, list);
+        felix.start();
+    }
+
+    /**
+     * Add the bundle info to the felix config properties.
+     * @param configProps The properties to be updated.
+     */
+    private void addBundles(final Properties configProps)
+    {
+        StringBuilder autoStartProp = new StringBuilder();
+        
+        for (BundleDescriptor bundle : bundles)
+        {
+            autoStartProp.append("\"");
+            autoStartProp.append("file:").append(System.getProperties().getProperty("user.home")).append("/.m2/repository/");
+            autoStartProp.append(bundle.getGroupId().replace('.', '/'));
+            autoStartProp.append("/");
+            autoStartProp.append(bundle.getArtifactId());
+            autoStartProp.append("/");
+            autoStartProp.append(bundle.getVersion());
+            autoStartProp.append("/");
+            autoStartProp.append(bundle.getArtifactId()).append("-").append(bundle.getVersion()).append(".jar");
+            autoStartProp.append("\" ");
+        }
+
+        configProps.setProperty("felix.auto.start.1", autoStartProp.toString());
+    }
+
+    /**
+     * Stop the runner instance (Felix).
+     */
+    public final void stop()
+    {
+        felix.stopAndWait();
+        felix = null;
+    }
+
+    /**
+     * Load the core bundles.
+     * @throws IOException Failed to load core bundles properties file.
+     */
+    private void loadCoreBundles() throws IOException
+    {
+        Properties bundleProperties = loadProperties("/bundles.properties");
+        bundles = loadBundleDescriptors(bundleProperties);
+    }
+
+    /**
+     * Load the set of BundleDescrptors from the supplied Properties set.
+     * @param bundleProperties The properties set.
+     * @return The list BundleDescrptors.
+     */
+    private static List<BundleDescriptor> loadBundleDescriptors(final Properties bundleProperties)
+    {
+        List<BundleDescriptor> bundleDescriptors = new ArrayList<BundleDescriptor>();
+        Set<Map.Entry<Object, Object>> propEntries = bundleProperties.entrySet();
+
+        for (Map.Entry<Object, Object> propEntry : propEntries)
+        {
+            String key = (String) propEntry.getKey();
+
+            if(key.startsWith("bundle."))
+            {
+                String value = (String) propEntry.getValue();
+                BundleDescriptor descriptor = new BundleDescriptor();
+                String[] tokens = value.split(";");
+
+                if(tokens.length != 3)
+                {
+                    throw new IllegalArgumentException("Invalid bundle descriptor in config '" + key + "=" + value + "'.  Must be 3 tokens separated by semi-colons: '<groupId>;<artifactId>;<version>'.");
+                }
+
+                descriptor.setGroupId(tokens[0].trim());
+                descriptor.setArtifactId(tokens[1].trim());
+                descriptor.setVersion(tokens[2].trim());
+                bundleDescriptors.add(descriptor);
+            }
+        }
+
+        return bundleDescriptors;
+    }
+
+
+    /**
+     * Load the properties from the supplied path (classpath).
+     * @param path The path.
+     * @return The Properties.
+     * @throws IOException Failed to load properties.
+     */
+    private Properties loadProperties(final String path) throws IOException
+    {
+        ApplicationProperties properties = new ApplicationProperties();
+
+        try
+        {
+            properties.load(getClass().getResourceAsStream(path));
+        }
+        catch (IOException e)
+        {
+            throw (IOException) (new IOException("Failed to load properties file '" + path + "' from classpath.").initCause(e));
+        }
+
+        return properties;
+    }
+
+    /**
+     * Assert that Felix is not running.
+     */
+    private void assertFelixNotRunning()
+    {
+        if(felix != null)
+        {
+            throw new IllegalStateException("Sorry, Felix instance already running on this Runner insance.");
+        }
+    }
+}


Property changes on: labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/org/jboss/esb/felix/FelixRunner.java
___________________________________________________________________
Name: svn:eol-style
   + native

Added: labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/overview.html
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/overview.html	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/java/overview.html	2008-12-08 18:13:33 UTC (rev 24304)
@@ -0,0 +1,8 @@
+<html>
+<head></head>
+<body>
+JBoss ESB Examples - Felix Runner.
+
+<h1>Overview</h1>
+</body>
+</html>
\ No newline at end of file

Added: labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/resources/bundles.properties
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/resources/bundles.properties	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/resources/bundles.properties	2008-12-08 18:13:33 UTC (rev 24304)
@@ -0,0 +1,18 @@
+#
+# OSGi bundles...
+#
+
+bundle.1=org.apache.felix;org.apache.felix.shell;1.0.2
+bundle.2=org.apache.felix;org.apache.felix.shell.tui;1.0.2
+bundle.3=org.apache.felix;org.apache.felix.configadmin;1.0.4
+bundle.4=org.apache.activemq;activemq-core;5.2.0
+bundle.5=org.apache.geronimo.specs;geronimo-jms_1.1_spec;1.1.1
+bundle.6=org.apache.geronimo.specs;geronimo-j2ee-management_1.1_spec;1.0.1
+bundle.7=jboss.jbossesb;jbossesb-api;5.0-SNAPSHOT
+bundle.8=jboss.jbossesb;jbossesb-osgi-runtime;5.0-SNAPSHOT
+bundle.9=jboss.jbossesb;jbossesb-osgi-configloader;5.0-SNAPSHOT
+bundle.10=jboss.jbossesb;jbossesb-routing-jms;5.0-SNAPSHOT
+bundle.11=jboss.jbossesb;jbossesb-osgi-jmsbus;5.0-SNAPSHOT
+bundle.12=jboss.jbossesb;jbossesb-routing-file;5.0-SNAPSHOT
+bundle.13=jboss.jbossesb;jbossesb-routing-file;5.0-SNAPSHOT
+bundle.14=jboss.jbossesb;jbossesb-examples-jms-bus-esb1;5.0-SNAPSHOT


Property changes on: labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/resources/bundles.properties
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/resources/jbossesb.felix.properties
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/resources/jbossesb.felix.properties	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/resources/jbossesb.felix.properties	2008-12-08 18:13:33 UTC (rev 24304)
@@ -0,0 +1,477 @@
+# 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.
+
+#
+# Framework config properties.
+#
+org.osgi.framework.system.packages=org.osgi.framework; version=1.4.0, \
+ org.osgi.service.packageadmin; version=1.2.0, \
+ org.osgi.service.startlevel; version=1.1.0, \
+ org.osgi.service.url; version=1.0.0, \
+ org.osgi.util.tracker; version=1.3.3 \
+ ${jre-1.5}
+
+felix.cache.profile=foo
+felix.cache.profiledir=./target/felix
+
+#org.osgi.framework.bootdelegation=sun.*,com.sun.*
+# felix.auto.start.1= \
+# "file:${apache.m2.path}/felix/org.apache.felix.shell/1.0.2/org.apache.felix.shell-1.0.2.jar" \
+
+felix.log.level=1
+felix.startlevel.framework=1
+felix.startlevel.bundle=1
+#felix.service.urlhandlers=false
+
+#
+# Bundle config properties.
+#
+org.osgi.service.http.port=8080
+osgi.shell.telnet=on
+obr.repository.url=http://felix.apache.org/obr/releases.xml
+
+
+#
+# Java platform package export properties.
+#
+jre-1.3=, \
+ javax.accessibility; \
+ javax.naming; \
+ javax.naming.directory; \
+ javax.naming.event; \
+ javax.naming.ldap; \
+ javax.naming.spi; \
+ javax.rmi; \
+ javax.rmi.CORBA; \
+ javax.sound.midi; \
+ javax.sound.midi.spi; \
+ javax.sound.sampled; \
+ javax.sound.sampled.spi; \
+ javax.swing; \
+ javax.swing.border; \
+ javax.swing.colorchooser; \
+ javax.swing.event; \
+ javax.swing.filechooser; \
+ javax.swing.plaf; \
+ javax.swing.plaf.basic; \
+ javax.swing.plaf.metal; \
+ javax.swing.plaf.multi; \
+ javax.swing.table; \
+ javax.swing.text; \
+ javax.swing.text.html; \
+ javax.swing.text.html.parser; \
+ javax.swing.text.rtf; \
+ javax.swing.tree; \
+ javax.swing.undo; \
+ javax.transaction; \
+ org.omg.CORBA; \
+ org.omg.CORBA_2_3; \
+ org.omg.CORBA_2_3.portable; \
+ org.omg.CORBA.DynAnyPackage; \
+ org.omg.CORBA.ORBPackage; \
+ org.omg.CORBA.portable; \
+ org.omg.CORBA.TypeCodePackage; \
+ org.omg.CosNaming; \
+ org.omg.CosNaming.NamingContextPackage; \
+ org.omg.SendingContext; \
+ org.omg.stub.java.rmi; \
+ version="1.3.0"
+
+jre-1.4=, \
+ javax.accessibility; \
+ javax.crypto; \
+ javax.crypto.interfaces; \
+ javax.crypto.spec; \
+ javax.imageio; \
+ javax.imageio.event; \
+ javax.imageio.metadata; \
+ javax.imageio.plugins.jpeg; \
+ javax.imageio.spi; \
+ javax.imageio.stream; \
+ javax.naming; \
+ javax.naming.directory; \
+ javax.naming.event; \
+ javax.naming.ldap; \
+ javax.naming.spi; \
+ javax.net; \
+ javax.net.ssl; \
+ javax.print; \
+ javax.print.attribute; \
+ javax.print.attribute.standard; \
+ javax.print.event; \
+ javax.rmi; \
+ javax.rmi.CORBA; \
+ javax.security.auth; \
+ javax.security.auth.callback; \
+ javax.security.auth.kerberos; \
+ javax.security.auth.login; \
+ javax.security.auth.spi; \
+ javax.security.auth.x500; \
+ javax.sound.midi; \
+ javax.sound.midi.spi; \
+ javax.sound.sampled; \
+ javax.sound.sampled.spi; \
+ javax.sql; \
+ javax.swing; \
+ javax.swing.border; \
+ javax.swing.colorchooser; \
+ javax.swing.event; \
+ javax.swing.filechooser; \
+ javax.swing.plaf; \
+ javax.swing.plaf.basic; \
+ javax.swing.plaf.metal; \
+ javax.swing.plaf.multi; \
+ javax.swing.table; \
+ javax.swing.text; \
+ javax.swing.text.html; \
+ javax.swing.text.html.parser; \
+ javax.swing.text.rtf; \
+ javax.swing.tree; \
+ javax.swing.undo; \
+ javax.transaction; \
+ javax.transaction.xa; \
+ javax.xml.parsers; \
+ javax.xml.transform; \
+ javax.xml.transform.dom; \
+ javax.xml.transform.sax; \
+ javax.xml.transform.stream; \
+ org.ietf.jgss; \
+ org.omg.CORBA; \
+ org.omg.CORBA_2_3; \
+ org.omg.CORBA_2_3.portable; \
+ org.omg.CORBA.DynAnyPackage; \
+ org.omg.CORBA.ORBPackage; \
+ org.omg.CORBA.portable; \
+ org.omg.CORBA.TypeCodePackage; \
+ org.omg.CosNaming; \
+ org.omg.CosNaming.NamingContextExtPackage; \
+ org.omg.CosNaming.NamingContextPackage; \
+ org.omg.Dynamic; \
+ org.omg.DynamicAny; \
+ org.omg.DynamicAny.DynAnyFactoryPackage; \
+ org.omg.DynamicAny.DynAnyPackage; \
+ org.omg.IOP; \
+ org.omg.IOP.CodecFactoryPackage; \
+ org.omg.IOP.CodecPackage; \
+ org.omg.Messaging; \
+ org.omg.PortableInterceptor; \
+ org.omg.PortableInterceptor.ORBInitInfoPackage; \
+ org.omg.PortableServer; \
+ org.omg.PortableServer.CurrentPackage; \
+ org.omg.PortableServer.POAManagerPackage; \
+ org.omg.PortableServer.POAPackage; \
+ org.omg.PortableServer.portable; \
+ org.omg.PortableServer.ServantLocatorPackage; \
+ org.omg.SendingContext; \
+ org.omg.stub.java.rmi; \
+ org.w3c.dom; \
+ org.w3c.dom.css; \
+ org.w3c.dom.events; \
+ org.w3c.dom.html; \
+ org.w3c.dom.stylesheets; \
+ org.w3c.dom.traversal; \
+ org.w3c.dom.views; \
+ org.xml.sax; \
+ org.xml.sax.ext; \
+ org.xml.sax.helpers; \
+ version="1.4.0"
+
+jre-1.5=, \
+ javax.accessibility; \
+ javax.activity; \
+ javax.crypto; \
+ javax.crypto.interfaces; \
+ javax.crypto.spec; \
+ javax.imageio; \
+ javax.imageio.event; \
+ javax.imageio.metadata; \
+ javax.imageio.plugins.bmp; \
+ javax.imageio.plugins.jpeg; \
+ javax.imageio.spi; \
+ javax.imageio.stream; \
+ javax.management; \
+ javax.management.loading; \
+ javax.management.modelmbean; \
+ javax.management.monitor; \
+ javax.management.openmbean; \
+ javax.management.relation; \
+ javax.management.remote; \
+ javax.management.remote.rmi; \
+ javax.management.timer; \
+ javax.naming; \
+ javax.naming.directory; \
+ javax.naming.event; \
+ javax.naming.ldap; \
+ javax.naming.spi; \
+ javax.net; \
+ javax.net.ssl; \
+ javax.print; \
+ javax.print.attribute; \
+ javax.print.attribute.standard; \
+ javax.print.event; \
+ javax.rmi; \
+ javax.rmi.CORBA; \
+ javax.rmi.ssl; \
+ javax.security.auth; \
+ javax.security.auth.callback; \
+ javax.security.auth.kerberos; \
+ javax.security.auth.login; \
+ javax.security.auth.spi; \
+ javax.security.auth.x500; \
+ javax.security.sasl; \
+ javax.sound.midi; \
+ javax.sound.midi.spi; \
+ javax.sound.sampled; \
+ javax.sound.sampled.spi; \
+ javax.sql; \
+ javax.sql.rowset; \
+ javax.sql.rowset.serial; \
+ javax.sql.rowset.spi; \
+ javax.swing; \
+ javax.swing.border; \
+ javax.swing.colorchooser; \
+ javax.swing.event; \
+ javax.swing.filechooser; \
+ javax.swing.plaf; \
+ javax.swing.plaf.basic; \
+ javax.swing.plaf.metal; \
+ javax.swing.plaf.multi; \
+ javax.swing.plaf.synth; \
+ javax.swing.table; \
+ javax.swing.text; \
+ javax.swing.text.html; \
+ javax.swing.text.html.parser; \
+ javax.swing.text.rtf; \
+ javax.swing.tree; \
+ javax.swing.undo; \
+ javax.transaction; \
+ javax.transaction.xa; \
+ javax.xml; \
+ javax.xml.datatype; \
+ javax.xml.namespace; \
+ javax.xml.parsers; \
+ javax.xml.transform; \
+ javax.xml.transform.dom; \
+ javax.xml.transform.sax; \
+ javax.xml.transform.stream; \
+ javax.xml.validation; \
+ javax.xml.xpath; \
+ org.ietf.jgss; \
+ org.omg.CORBA; \
+ org.omg.CORBA_2_3; \
+ org.omg.CORBA_2_3.portable; \
+ org.omg.CORBA.DynAnyPackage; \
+ org.omg.CORBA.ORBPackage; \
+ org.omg.CORBA.portable; \
+ org.omg.CORBA.TypeCodePackage; \
+ org.omg.CosNaming; \
+ org.omg.CosNaming.NamingContextExtPackage; \
+ org.omg.CosNaming.NamingContextPackage; \
+ org.omg.Dynamic; \
+ org.omg.DynamicAny; \
+ org.omg.DynamicAny.DynAnyFactoryPackage; \
+ org.omg.DynamicAny.DynAnyPackage; \
+ org.omg.IOP; \
+ org.omg.IOP.CodecFactoryPackage; \
+ org.omg.IOP.CodecPackage; \
+ org.omg.Messaging; \
+ org.omg.PortableInterceptor; \
+ org.omg.PortableInterceptor.ORBInitInfoPackage; \
+ org.omg.PortableServer; \
+ org.omg.PortableServer.CurrentPackage; \
+ org.omg.PortableServer.POAManagerPackage; \
+ org.omg.PortableServer.POAPackage; \
+ org.omg.PortableServer.portable; \
+ org.omg.PortableServer.ServantLocatorPackage; \
+ org.omg.SendingContext; \
+ org.omg.stub.java.rmi; \
+ org.omg.stub.javax.management.remote.rmi; \
+ org.w3c.dom; \
+ org.w3c.dom.bootstrap; \
+ org.w3c.dom.css; \
+ org.w3c.dom.events; \
+ org.w3c.dom.html; \
+ org.w3c.dom.ls; \
+ org.w3c.dom.ranges; \
+ org.w3c.dom.stylesheets; \
+ org.w3c.dom.traversal; \
+ org.w3c.dom.views; \
+ org.xml.sax; \
+ org.xml.sax.ext; \
+ org.xml.sax.helpers; \
+ version="1.5.0"
+
+jre-1.6=, \
+ javax.accessibility; \
+ javax.activation; \
+ javax.activity; \
+ javax.annotation; \
+ javax.annotation.processing; \
+ javax.crypto; \
+ javax.crypto.interfaces; \
+ javax.crypto.spec; \
+ javax.imageio; \
+ javax.imageio.event; \
+ javax.imageio.metadata; \
+ javax.imageio.plugins.bmp; \
+ javax.imageio.plugins.jpeg; \
+ javax.imageio.spi; \
+ javax.imageio.stream; \
+ javax.jws; \
+ javax.jws.soap; \
+ javax.lang.model; \
+ javax.lang.model.element; \
+ javax.lang.model.type; \
+ javax.lang.model.util; \
+ javax.management; \
+ javax.management.loading; \
+ javax.management.modelmbean; \
+ javax.management.monitor; \
+ javax.management.openmbean; \
+ javax.management.relation; \
+ javax.management.remote; \
+ javax.management.remote.rmi; \
+ javax.management.timer; \
+ javax.naming; \
+ javax.naming.directory; \
+ javax.naming.event; \
+ javax.naming.ldap; \
+ javax.naming.spi; \
+ javax.net; \
+ javax.net.ssl; \
+ javax.print; \
+ javax.print.attribute; \
+ javax.print.attribute.standard; \
+ javax.print.event; \
+ javax.rmi; \
+ javax.rmi.CORBA; \
+ javax.rmi.ssl; \
+ javax.script; \
+ javax.security.auth; \
+ javax.security.auth.callback; \
+ javax.security.auth.kerberos; \
+ javax.security.auth.login; \
+ javax.security.auth.spi; \
+ javax.security.auth.x500; \
+ javax.security.cert; \
+ javax.security.sasl; \
+ javax.sound.midi; \
+ javax.sound.midi.spi; \
+ javax.sound.sampled; \
+ javax.sound.sampled.spi; \
+ javax.sql; \
+ javax.sql.rowset; \
+ javax.sql.rowset.serial; \
+ javax.sql.rowset.spi; \
+ javax.swing; \
+ javax.swing.border; \
+ javax.swing.colorchooser; \
+ javax.swing.event; \
+ javax.swing.filechooser; \
+ javax.swing.plaf; \
+ javax.swing.plaf.basic; \
+ javax.swing.plaf.metal; \
+ javax.swing.plaf.multi; \
+ javax.swing.plaf.synth; \
+ javax.swing.table; \
+ javax.swing.text; \
+ javax.swing.text.html; \
+ javax.swing.text.html.parser; \
+ javax.swing.text.rtf; \
+ javax.swing.tree; \
+ javax.swing.undo; \
+ javax.tools; \
+ javax.transaction; \
+ javax.transaction.xa; \
+ javax.xml; \
+ javax.xml.bind; \
+ javax.xml.bind.annotation; \
+ javax.xml.bind.annotation.adapters; \
+ javax.xml.bind.attachment; \
+ javax.xml.bind.helpers; \
+ javax.xml.bind.util; \
+ javax.xml.crypto; \
+ javax.xml.crypto.dom; \
+ javax.xml.crypto.dsig; \
+ javax.xml.crypto.dsig.dom; \
+ javax.xml.crypto.dsig.keyinfo; \
+ javax.xml.crypto.dsig.spec; \
+ javax.xml.datatype; \
+ javax.xml.namespace; \
+ javax.xml.parsers; \
+ javax.xml.soap; \
+ javax.xml.stream; \
+ javax.xml.stream.events; \
+ javax.xml.stream.util; \
+ javax.xml.transform; \
+ javax.xml.transform.dom; \
+ javax.xml.transform.sax; \
+ javax.xml.transform.stax; \
+ javax.xml.transform.stream; \
+ javax.xml.validation; \
+ javax.xml.ws; \
+ javax.xml.ws.handler; \
+ javax.xml.ws.handler.soap; \
+ javax.xml.ws.http; \
+ javax.xml.ws.soap; \
+ javax.xml.ws.spi; \
+ javax.xml.xpath; \
+ org.ietf.jgss; \
+ org.omg.CORBA; \
+ org.omg.CORBA_2_3; \
+ org.omg.CORBA_2_3.portable; \
+ org.omg.CORBA.DynAnyPackage; \
+ org.omg.CORBA.ORBPackage; \
+ org.omg.CORBA.portable; \
+ org.omg.CORBA.TypeCodePackage; \
+ org.omg.CosNaming; \
+ org.omg.CosNaming.NamingContextExtPackage; \
+ org.omg.CosNaming.NamingContextPackage; \
+ org.omg.Dynamic; \
+ org.omg.DynamicAny; \
+ org.omg.DynamicAny.DynAnyFactoryPackage; \
+ org.omg.DynamicAny.DynAnyPackage; \
+ org.omg.IOP; \
+ org.omg.IOP.CodecFactoryPackage; \
+ org.omg.IOP.CodecPackage; \
+ org.omg.Messaging; \
+ org.omg.PortableInterceptor; \
+ org.omg.PortableInterceptor.ORBInitInfoPackage; \
+ org.omg.PortableServer; \
+ org.omg.PortableServer.CurrentPackage; \
+ org.omg.PortableServer.POAManagerPackage; \
+ org.omg.PortableServer.POAPackage; \
+ org.omg.PortableServer.portable; \
+ org.omg.PortableServer.ServantLocatorPackage; \
+ org.omg.SendingContext; \
+ org.omg.stub.java.rmi; \
+ org.omg.stub.javax.management.remote.rmi; \
+ org.w3c.dom; \
+ org.w3c.dom.bootstrap; \
+ org.w3c.dom.css; \
+ org.w3c.dom.events; \
+ org.w3c.dom.html; \
+ org.w3c.dom.ls; \
+ org.w3c.dom.ranges; \
+ org.w3c.dom.stylesheets; \
+ org.w3c.dom.traversal; \
+ org.w3c.dom.views; \
+ org.w3c.dom.xpath; \
+ org.xml.sax; \
+ org.xml.sax.ext; \
+ org.xml.sax.helpers; \
+ version=\"1.6.0\"
\ No newline at end of file


Property changes on: labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/main/resources/jbossesb.felix.properties
___________________________________________________________________
Name: svn:mime-type
   + text/plain
Name: svn:eol-style
   + native

Added: labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/test/java/org/jboss/esb/felix/FelixRunnerTest.java
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/test/java/org/jboss/esb/felix/FelixRunnerTest.java	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/test/java/org/jboss/esb/felix/FelixRunnerTest.java	2008-12-08 18:13:33 UTC (rev 24304)
@@ -0,0 +1,44 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2008, Red Hat Middleware LLC, and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2008, JBoss Inc.
+ */
+package org.jboss.esb.felix;
+
+import junit.framework.TestCase;
+import org.osgi.framework.BundleException;
+
+import java.io.IOException;
+
+/**
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public class FelixRunnerTest extends TestCase
+{
+    public void test() throws IOException, BundleException, InterruptedException
+    {
+        /*
+        FelixRunner runner = new FelixRunner();
+
+        runner.start();
+
+        Thread.sleep(15000);
+
+        runner.stop();
+        */
+    }
+}


Property changes on: labs/jbossesb/workspace/skeagh/examples/util/felix-runner/src/test/java/org/jboss/esb/felix/FelixRunnerTest.java
___________________________________________________________________
Name: svn:eol-style
   + native

Copied: labs/jbossesb/workspace/skeagh/examples/util/pom.xml (from rev 24298, labs/jbossesb/workspace/skeagh/examples/pom.xml)
===================================================================
--- labs/jbossesb/workspace/skeagh/examples/util/pom.xml	                        (rev 0)
+++ labs/jbossesb/workspace/skeagh/examples/util/pom.xml	2008-12-08 18:13:33 UTC (rev 24304)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
+         xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>jboss.jbossesb</groupId>
+        <artifactId>jbossesb</artifactId>
+        <version>5.0-SNAPSHOT</version>
+    </parent>
+    <groupId>jboss.jbossesb</groupId>
+    <artifactId>jbossesb-examples-util</artifactId>
+
+    <packaging>pom</packaging>
+    <version>${jboss.esb.version}</version>
+
+    <name>JBoss ESB Examples Modules (Base POM)</name>
+
+    <url>http://www.jboss.org/jbossesb/</url>
+
+    <modules>
+        <module>felix-runner</module>
+        <module>jms-provider</module>
+    </modules>
+
+</project>


Property changes on: labs/jbossesb/workspace/skeagh/examples/util/pom.xml
___________________________________________________________________
Name: svn:mergeinfo
   + 




More information about the jboss-svn-commits mailing list