Return-Path: Delivered-To: apmail-geronimo-scm-archive@www.apache.org Received: (qmail 38892 invoked from network); 31 Jan 2008 17:13:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jan 2008 17:13:08 -0000 Received: (qmail 55320 invoked by uid 500); 31 Jan 2008 17:12:59 -0000 Delivered-To: apmail-geronimo-scm-archive@geronimo.apache.org Received: (qmail 55276 invoked by uid 500); 31 Jan 2008 17:12:59 -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 55265 invoked by uid 99); 31 Jan 2008 17:12:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jan 2008 09:12:59 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jan 2008 17:12:40 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id DC9611A9832; Thu, 31 Jan 2008 09:12:46 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r617161 - in /geronimo/server/trunk/framework: configs/plugin/src/main/plan/ modules/geronimo-plugin/src/main/java/org/apache/geronimo/system/plugin/ Date: Thu, 31 Jan 2008 17:12:39 -0000 To: scm@geronimo.apache.org From: djencks@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080131171246.DC9611A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: djencks Date: Thu Jan 31 09:12:26 2008 New Revision: 617161 URL: http://svn.apache.org/viewvc?rev=617161&view=rev Log: GERONIMO-3786 patch from YunFeng Ma fixing wrong attribute names in ServerInstanceData and cleaning up a previous server before starting export Modified: geronimo/server/trunk/framework/configs/plugin/src/main/plan/plan.xml geronimo/server/trunk/framework/modules/geronimo-plugin/src/main/java/org/apache/geronimo/system/plugin/PluginInstallerGBean.java geronimo/server/trunk/framework/modules/geronimo-plugin/src/main/java/org/apache/geronimo/system/plugin/ServerInstanceData.java Modified: geronimo/server/trunk/framework/configs/plugin/src/main/plan/plan.xml URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/configs/plugin/src/main/plan/plan.xml?rev=617161&r1=617160&r2=617161&view=diff ============================================================================== --- geronimo/server/trunk/framework/configs/plugin/src/main/plan/plan.xml (original) +++ geronimo/server/trunk/framework/configs/plugin/src/main/plan/plan.xml Thu Jan 31 09:12:26 2008 @@ -71,24 +71,24 @@ offline var/config/offline-deployer-config.xml - var/config/config-substitutions.properties + var/config/config-substitutions.properties org.apache.geronimo.config.substitution. - var/config/artifact_aliases.properties + var/config/artifact_aliases.properties client default - var/config/client_artifact_aliases.properties + var/config/client_artifact_aliases.properties DefaultServer jsr88 var/config/jsr88-configurer-config.xml - var/config/config-substitutions.properties + var/config/config-substitutions.properties org.apache.geronimo.config.substitution. - var/config/artifact_aliases.properties + var/config/artifact_aliases.properties Modified: geronimo/server/trunk/framework/modules/geronimo-plugin/src/main/java/org/apache/geronimo/system/plugin/PluginInstallerGBean.java URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-plugin/src/main/java/org/apache/geronimo/system/plugin/PluginInstallerGBean.java?rev=617161&r1=617160&r2=617161&view=diff ============================================================================== --- geronimo/server/trunk/framework/modules/geronimo-plugin/src/main/java/org/apache/geronimo/system/plugin/PluginInstallerGBean.java (original) +++ geronimo/server/trunk/framework/modules/geronimo-plugin/src/main/java/org/apache/geronimo/system/plugin/PluginInstallerGBean.java Thu Jan 31 09:12:26 2008 @@ -318,14 +318,18 @@ */ public DownloadResults installPluginList(String targetRepositoryPath, String relativeTargetServerPath, PluginListType pluginList) throws Exception { DownloadResults downloadPoller = new DownloadResults(); - String targetServerPath = serverInfo.resolveServer(relativeTargetServerPath).getAbsolutePath(); + File targetServerPath = serverInfo.resolveServer(relativeTargetServerPath); + if (targetServerPath.exists()) { + FileUtils.forceDelete(targetServerPath); + } + String targetServerPathName = targetServerPath.getAbsolutePath(); Kernel kernel = new BasicKernel("assembly"); try { // kernel.boot(); PluginInstallerGBean installer = new PluginInstallerGBean( targetRepositoryPath, - targetServerPath, + targetServerPathName, serverInstanceDatas, kernel, classLoader); Modified: geronimo/server/trunk/framework/modules/geronimo-plugin/src/main/java/org/apache/geronimo/system/plugin/ServerInstanceData.java URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/modules/geronimo-plugin/src/main/java/org/apache/geronimo/system/plugin/ServerInstanceData.java?rev=617161&r1=617160&r2=617161&view=diff ============================================================================== --- geronimo/server/trunk/framework/modules/geronimo-plugin/src/main/java/org/apache/geronimo/system/plugin/ServerInstanceData.java (original) +++ geronimo/server/trunk/framework/modules/geronimo-plugin/src/main/java/org/apache/geronimo/system/plugin/ServerInstanceData.java Thu Jan 31 09:12:26 2008 @@ -41,9 +41,9 @@ private String name; private String attributeManagerFrom; private String configFile = "var/config/config.xml"; - private String configSubstitutionsFileName = "var/config/config-substitutions.properties"; + private String configSubstitutionsFile = "var/config/config-substitutions.properties"; private String configSubstitutionsPrefix = "org.apache.geronimo.config.substitution."; - private String artifactAliasesFileName = "var/config/artifact_aliases.properties"; + private String artifactAliasesFile = "var/config/artifact_aliases.properties"; public String getName() { @@ -72,11 +72,11 @@ } public String getConfigSubstitutionsFile() { - return configSubstitutionsFileName; + return configSubstitutionsFile; } - public void setConfigSubstitutionsFile(String configSubstitutionsFileName) { - this.configSubstitutionsFileName = configSubstitutionsFileName; + public void setConfigSubstitutionsFile(String configSubstitutionsFile) { + this.configSubstitutionsFile = configSubstitutionsFile; } public String getConfigSubstitutionsPrefix() { @@ -88,11 +88,11 @@ } public String getArtifactAliasesFile() { - return artifactAliasesFileName; + return artifactAliasesFile; } - public void setArtifactAliasesFile(String artifactAliasesFileName) { - this.artifactAliasesFileName = artifactAliasesFileName; + public void setArtifactAliasesFile(String artifactAliasesFile) { + this.artifactAliasesFile = artifactAliasesFile; } public ServerInstance getServerInstance(ArtifactManager artifactManager, ListableRepository targetRepo, ServerInfo serverInfo, Map serverInstances, boolean live) throws IOException { @@ -139,9 +139,9 @@ infoFactory.addAttribute("name", String.class, true, true); infoFactory.addAttribute("attributeManagerFrom", String.class, true, true); infoFactory.addAttribute("configFile", String.class, true, true); - infoFactory.addAttribute("configSubstitutionsFileName", String.class, true, true); + infoFactory.addAttribute("configSubstitutionsFile", String.class, true, true); infoFactory.addAttribute("configSubstitutionsPrefix", String.class, true, true); - infoFactory.addAttribute("artifactAliasesFileName", String.class, true, true); + infoFactory.addAttribute("artifactAliasesFile", String.class, true, true); GBEAN_INFO = infoFactory.getBeanInfo(); }