Return-Path: Delivered-To: apmail-incubator-ace-commits-archive@minotaur.apache.org Received: (qmail 82752 invoked from network); 9 Oct 2009 22:10:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Oct 2009 22:10:45 -0000 Received: (qmail 37741 invoked by uid 500); 9 Oct 2009 22:10:45 -0000 Delivered-To: apmail-incubator-ace-commits-archive@incubator.apache.org Received: (qmail 37717 invoked by uid 500); 9 Oct 2009 22:10:45 -0000 Mailing-List: contact ace-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ace-dev@incubator.apache.org Delivered-To: mailing list ace-commits@incubator.apache.org Received: (qmail 37707 invoked by uid 99); 9 Oct 2009 22:10:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2009 22:10:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2009 22:10:41 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A67622388865; Fri, 9 Oct 2009 22:09:49 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r823716 - in /incubator/ace/trunk: core/ core/conf/dev-server-webui/ server/src/org/apache/ace/webconsole/ server/src/org/apache/ace/webconsole/plugin/ webui/war/ Date: Fri, 09 Oct 2009 22:09:49 -0000 To: ace-commits@incubator.apache.org From: marrs@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091009220949.A67622388865@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: marrs Date: Fri Oct 9 22:09:48 2009 New Revision: 823716 URL: http://svn.apache.org/viewvc?rev=823716&view=rev Log: ACE-34 Committed the patches Toni supplied. Modified the build because at this point I do not want to move to a hybrid build system of Ant and Maven. Added: incubator/ace/trunk/server/src/org/apache/ace/webconsole/ incubator/ace/trunk/server/src/org/apache/ace/webconsole/plugin/ incubator/ace/trunk/server/src/org/apache/ace/webconsole/plugin/Activator.java (with props) incubator/ace/trunk/server/src/org/apache/ace/webconsole/plugin/WebUIConsoleServlet.java (with props) incubator/ace/trunk/webui/war/webui-headless.html (with props) Modified: incubator/ace/trunk/core/build.xml incubator/ace/trunk/core/conf/dev-server-webui/platform.setup Modified: incubator/ace/trunk/core/build.xml URL: http://svn.apache.org/viewvc/incubator/ace/trunk/core/build.xml?rev=823716&r1=823715&r2=823716&view=diff ============================================================================== --- incubator/ace/trunk/core/build.xml (original) +++ incubator/ace/trunk/core/build.xml Fri Oct 9 22:09:48 2009 @@ -431,6 +431,11 @@ exportpackage="org.apache.ace.location" privatepackage="org.apache.ace.location.upnp, org.apache.ace.location.upnp.actions, org.apache.ace.location.upnp.util" bundleactivator="org.apache.ace.location.upnp.Activator" /> + @@ -966,17 +971,17 @@ 2.0.0 - + - - - - + + + + - - - + + + Modified: incubator/ace/trunk/core/conf/dev-server-webui/platform.setup URL: http://svn.apache.org/viewvc/incubator/ace/trunk/core/conf/dev-server-webui/platform.setup?rev=823716&r1=823715&r2=823716&view=diff ============================================================================== --- incubator/ace/trunk/core/conf/dev-server-webui/platform.setup (original) +++ incubator/ace/trunk/core/conf/dev-server-webui/platform.setup Fri Oct 9 22:09:48 2009 @@ -26,6 +26,7 @@ @bundles@/org.apache.ace.obr.storage-1.0.0.jar@update @bundles@/org.apache.ace.obr.metadata-1.0.0.jar@update @bundles@/org.apache.ace.webui-1.0.0.jar@update +@bundles@/org.apache.ace.webconsole.plugin-1.0.0.jar@update @ext@/org.osgi.compendium.jar @ext@/osgi.mobile.jar Added: incubator/ace/trunk/server/src/org/apache/ace/webconsole/plugin/Activator.java URL: http://svn.apache.org/viewvc/incubator/ace/trunk/server/src/org/apache/ace/webconsole/plugin/Activator.java?rev=823716&view=auto ============================================================================== --- incubator/ace/trunk/server/src/org/apache/ace/webconsole/plugin/Activator.java (added) +++ incubator/ace/trunk/server/src/org/apache/ace/webconsole/plugin/Activator.java Fri Oct 9 22:09:48 2009 @@ -0,0 +1,49 @@ +/* + * 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.webconsole.plugin; + +import java.util.Dictionary; +import java.util.Hashtable; + +import javax.servlet.Servlet; + +import org.apache.felix.dependencymanager.DependencyActivatorBase; +import org.apache.felix.dependencymanager.DependencyManager; +import org.osgi.framework.BundleContext; + +/** + * @author Toni Menzel + */ +public class Activator extends DependencyActivatorBase { + @Override + public void init(BundleContext bundleContext, DependencyManager manager) throws Exception { + Dictionary dict = new Hashtable(); + dict.put( "felix.webconsole.label", WebUIConsoleServlet.LABEL ); + dict.put( "felix.webconsole.title", WebUIConsoleServlet.TITLE ); + manager.add(createService() + .setInterface(Servlet.class.getName(), dict) + .setImplementation(new WebUIConsoleServlet()) + ); + } + + @Override + public void destroy(BundleContext bundleContext, DependencyManager manager) throws Exception { + + } +} Propchange: incubator/ace/trunk/server/src/org/apache/ace/webconsole/plugin/Activator.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: incubator/ace/trunk/server/src/org/apache/ace/webconsole/plugin/WebUIConsoleServlet.java URL: http://svn.apache.org/viewvc/incubator/ace/trunk/server/src/org/apache/ace/webconsole/plugin/WebUIConsoleServlet.java?rev=823716&view=auto ============================================================================== --- incubator/ace/trunk/server/src/org/apache/ace/webconsole/plugin/WebUIConsoleServlet.java (added) +++ incubator/ace/trunk/server/src/org/apache/ace/webconsole/plugin/WebUIConsoleServlet.java Fri Oct 9 22:09:48 2009 @@ -0,0 +1,40 @@ +/* + * 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.webconsole.plugin; + +import java.io.IOException; + +import javax.servlet.ServletException; +import javax.servlet.http.HttpServlet; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; + +/** + * @author Toni Menzel + */ +public class WebUIConsoleServlet extends HttpServlet { + public static final String LABEL = "apacheace"; + public static final Object TITLE = "Apache ACE"; + + @Override + protected void service(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws ServletException, IOException { + // ACE WebUI is a full ajax UI, so rending this once should be enough: + httpServletResponse.getWriter().println(" +
+ + Propchange: incubator/ace/trunk/webui/war/webui-headless.html ------------------------------------------------------------------------------ svn:mime-type = text/plain