From c6559f0dbcb77798f4cda4952a06bf2ba71f72fb Mon Sep 17 00:00:00 2001 From: Gavin Cornwell Date: Thu, 21 Feb 2008 14:35:30 +0000 Subject: [PATCH] Merged V2.2 to HEAD 7386: JSF component to view, add, edit and remove deployment server configuration Added new step to create/edit website wizard to collect and edit deployment server configuration Enabled the copying of deployment server config when creating one web project from another Added new icons to tell apart Alfresco Server vs. File System deployments Updated UI to use 'friendly' server name when possible git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8351 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- config/alfresco/model/wcmAppModel.xml | 2 -- .../alfresco/repo/avm/actions/AVMDeploySnapshotAction.java | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config/alfresco/model/wcmAppModel.xml b/config/alfresco/model/wcmAppModel.xml index a46c4c9b3b..43ee4f91aa 100644 --- a/config/alfresco/model/wcmAppModel.xml +++ b/config/alfresco/model/wcmAppModel.xml @@ -297,7 +297,6 @@ Port d:int - true Display Name @@ -330,7 +329,6 @@ Deploy On Approval d:boolean - false diff --git a/source/java/org/alfresco/repo/avm/actions/AVMDeploySnapshotAction.java b/source/java/org/alfresco/repo/avm/actions/AVMDeploySnapshotAction.java index b5c3a7ab58..50e428458b 100644 --- a/source/java/org/alfresco/repo/avm/actions/AVMDeploySnapshotAction.java +++ b/source/java/org/alfresco/repo/avm/actions/AVMDeploySnapshotAction.java @@ -65,6 +65,7 @@ import org.apache.commons.logging.LogFactory; public class AVMDeploySnapshotAction extends ActionExecuterAbstractBase { public static final String NAME = "avm-deploy-snapshot"; + public static final String FILE_SERVER_PREFIX = "\\\\"; public static final String PARAM_WEBSITE = "website"; public static final String PARAM_SERVER = "server"; @@ -83,7 +84,6 @@ public class AVMDeploySnapshotAction extends ActionExecuterAbstractBase private static Log logger = LogFactory.getLog(AVMDeploySnapshotAction.class); private static Log delayDeploymentLogger = LogFactory.getLog("alfresco.deployment.delay"); - private static final String FILE_SERVER_PREFIX = "\\\\"; /** * Calculate the URI representation of a server from the given set of properties @@ -439,7 +439,7 @@ public class AVMDeploySnapshotAction extends ActionExecuterAbstractBase reportProps.put(WCMAppModel.PROP_DEPLOYFAILEDREASON, error.getMessage()); } reportRef = this.nodeService.createNode(attempt, - WCMAppModel.ASSOC_DEPLOYMENTREPORTS, WCMAppModel.ASSOC_DEPLOYMENTREPORT, + WCMAppModel.ASSOC_DEPLOYMENTREPORTS, WCMAppModel.ASSOC_DEPLOYMENTREPORTS, WCMAppModel.TYPE_DEPLOYMENTREPORT, reportProps).getChildRef(); ContentWriter writer = contentService.getWriter(reportRef, ContentModel.PROP_CONTENT, true); writer.setMimetype(MimetypeMap.MIMETYPE_TEXT_PLAIN);