Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 75593 invoked from network); 12 Mar 2010 06:26:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Mar 2010 06:26:50 -0000 Received: (qmail 54004 invoked by uid 500); 12 Mar 2010 06:26:13 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 53927 invoked by uid 500); 12 Mar 2010 06:26:13 -0000 Mailing-List: contact scm-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list scm@geronimo.apache.org Received: (qmail 53920 invoked by uid 99); 12 Mar 2010 06:26:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Mar 2010 06:26:12 +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, 12 Mar 2010 06:26:09 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 4D2E323889B2; Fri, 12 Mar 2010 06:25:48 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r922153 [2/2] - in /geronimo/server/trunk/plugins/aries: ./ aries-deployer/ aries-deployer/src/main/history/ aries-deployer/src/main/plan/ geronimo-aries-builder/ geronimo-aries-builder/src/main/java/org/apache/geronimo/aries/builder/ geron... Date: Fri, 12 Mar 2010 06:25:47 -0000 To: scm@geronimo.apache.org From: gawor@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100312062548.4D2E323889B2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/java/org/apache/geronimo/aries/shell/StopApplication.java URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/java/org/apache/geronimo/aries/shell/StopApplication.java?rev=922153&view=auto ============================================================================== --- geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/java/org/apache/geronimo/aries/shell/StopApplication.java (added) +++ geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/java/org/apache/geronimo/aries/shell/StopApplication.java Fri Mar 12 06:25:46 2010 @@ -0,0 +1,48 @@ +/* + * 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.geronimo.aries.shell; + +import org.apache.aries.application.management.ApplicationContext; +import org.apache.aries.application.management.ApplicationContextManager; +import org.apache.felix.gogo.commands.Argument; +import org.apache.felix.gogo.commands.Command; + +/** + * @version $Rev$ $Date$ + */ +@Command(scope = "eba", name = "stop", description = "Stop Application") +public class StopApplication extends ApplicationCommandSupport { + + @Argument(required = true, description = "Application name") + String applicationName; + + @Override + protected Object doExecute() throws Exception { + ApplicationContextManager contextManager = getApplicationContextManager(); + ApplicationContext context = findApplicationContext(contextManager, applicationName); + if (context == null) { + System.out.println("EBA " + applicationName + " not found"); + } else { + context.stop(); + } + return null; + } + +} Propchange: geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/java/org/apache/geronimo/aries/shell/StopApplication.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/java/org/apache/geronimo/aries/shell/StopApplication.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/java/org/apache/geronimo/aries/shell/StopApplication.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/java/org/apache/geronimo/aries/shell/UninstallApplication.java URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/java/org/apache/geronimo/aries/shell/UninstallApplication.java?rev=922153&view=auto ============================================================================== --- geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/java/org/apache/geronimo/aries/shell/UninstallApplication.java (added) +++ geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/java/org/apache/geronimo/aries/shell/UninstallApplication.java Fri Mar 12 06:25:46 2010 @@ -0,0 +1,50 @@ +/* + * 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.geronimo.aries.shell; + +import org.apache.aries.application.management.ApplicationContext; +import org.apache.aries.application.management.ApplicationContextManager; +import org.apache.aries.application.management.AriesApplicationManager; +import org.apache.felix.gogo.commands.Argument; +import org.apache.felix.gogo.commands.Command; + +/** + * @version $Rev$ $Date$ + */ +@Command(scope = "eba", name = "uninstall", description = "Uninstall Application") +public class UninstallApplication extends ApplicationCommandSupport { + + @Argument(required = true, description = "Application name") + String applicationName; + + @Override + protected Object doExecute() throws Exception { + ApplicationContextManager contextManager = getApplicationContextManager(); + ApplicationContext context = findApplicationContext(contextManager, applicationName); + if (context == null) { + System.out.println("EBA " + applicationName + " not found"); + } else { + AriesApplicationManager manager = getAriesApplicationManager(); + manager.uninstall(context); + } + return null; + } + +} Propchange: geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/java/org/apache/geronimo/aries/shell/UninstallApplication.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/java/org/apache/geronimo/aries/shell/UninstallApplication.java ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/java/org/apache/geronimo/aries/shell/UninstallApplication.java ------------------------------------------------------------------------------ svn:mime-type = text/plain Added: geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/resources/OSGI-INF/blueprint/shell-eba.xml URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/resources/OSGI-INF/blueprint/shell-eba.xml?rev=922153&view=auto ============================================================================== --- geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/resources/OSGI-INF/blueprint/shell-eba.xml (added) +++ geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/resources/OSGI-INF/blueprint/shell-eba.xml Fri Mar 12 06:25:46 2010 @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + Propchange: geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/resources/OSGI-INF/blueprint/shell-eba.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/resources/OSGI-INF/blueprint/shell-eba.xml ------------------------------------------------------------------------------ svn:keywords = Date Revision Propchange: geronimo/server/trunk/plugins/aries/geronimo-aries-shell/src/main/resources/OSGI-INF/blueprint/shell-eba.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Modified: geronimo/server/trunk/plugins/aries/pom.xml URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/aries/pom.xml?rev=922153&r1=922152&r2=922153&view=diff ============================================================================== --- geronimo/server/trunk/plugins/aries/pom.xml (original) +++ geronimo/server/trunk/plugins/aries/pom.xml Fri Mar 12 06:25:46 2010 @@ -38,7 +38,33 @@ geronimo-aries-builder + geronimo-aries-shell aries-deployer + + + + org.apache.aries.application + org.apache.aries.application.utils + 0.1-incubating-SNAPSHOT + + + org.apache.aries.application + org.apache.aries.application.api + 0.1-incubating-SNAPSHOT + + + org.apache.aries.application + org.apache.aries.application.management + 0.1-incubating-SNAPSHOT + + + org.apache.aries.application + org.apache.aries.application.resolver.obr + 0.1-incubating-SNAPSHOT + + + +