List of usage examples for org.springframework.context ApplicationContextException ApplicationContextException
public ApplicationContextException(String msg, Throwable cause)
From source file:com.cisco.dvbu.ps.deploytool.services.UserManagerImpl.java
private void populateUserArrayList(boolean userArrayListPopulated, ArrayList<String> validUsers, ArrayList<UserDomain> userArray, String domainName, String serverId, String pathToServersXML) throws ApplicationContextException { if (!userArrayListPopulated) { try {/*from w ww. jav a 2 s. c o m*/ UserList cisUserList = getUserDAO().getAllUsers(validUsers, domainName, serverId, pathToServersXML); for (User user : cisUserList.getUser()) { UserDomain userDomain = new UserDomain(); userDomain.setUsername(user.getName()); userDomain.setDomain(user.getDomainName()); userArray.add(userDomain); } } catch (CompositeException e) { logger.error("Error while retrieving CIS user list", e); throw new ApplicationContextException("Error while retrieving CIS user list" + e.getMessage(), e); } } }
From source file:com.cisco.dvbu.ps.deploytool.services.VCSManagerImpl.java
private void vcsCheckoutImpl(String serverId, String vcsResourcePath, String vcsResourceType, String vcsLabel, String vcsRevision, String pathToServersXML, String vcsUser, String vcsPassword) throws CompositeException { if (logger.isDebugEnabled()) { logger.debug("Entering VCSManagerImpl.vcsCheckoutImpl() with following params " + " serverId: " + serverId + ", vcsResourcePath: " + vcsResourcePath + ", vcsResourceType: ," + vcsResourceType + ", vcsLabel: " + vcsLabel + ", vcsRevision: " + vcsRevision + ", pathToServersXML: " + pathToServersXML);/*w ww . j av a 2 s. co m*/ } try { String prefix = "vcsCheckout"; String actionName = "vcsCheckout"; // Set the Module Action Objective String s1 = ""; if (vcsLabel != null) s1 = "Label=" + vcsLabel; if (vcsRevision != null) s1 = "Rev=" + vcsRevision; String s2 = (vcsResourcePath == null) ? "no_vcsResourcePath" : vcsResourcePath; System.setProperty("MODULE_ACTION_OBJECTIVE", "CHECKOUT : " + s1 + " : " + s2); // Set the global suppress and debug flags for this class based on properties found in the property file setGlobalProperties(); CommonUtils.writeOutput("***** BEGIN COMMAND: " + actionName + " *****", prefix, "-info", logger, debug1, debug2, debug3); CommonUtils.writeOutput("", prefix, "-info", logger, debug1, debug2, debug3); /***************************************** * VALIDATE COMMAND-LINE VARIABLES *****************************************/ // Validate the arguments if (serverId == null || serverId.trim().length() == 0) { throw new ValidationException("Server Id cannot be null or empty for " + prefix); } if (pathToServersXML == null || pathToServersXML.trim().length() == 0) { throw new ValidationException("Path to Server XML file cannot be null or empty for " + prefix); } // Validate whether the files exist or not if (!CommonUtils.fileExists(pathToServersXML)) { throw new ValidationException("File [" + pathToServersXML + "] does not exist."); } /***************************************** * PRINT OUT COMMAND-LINE VARIABLES *****************************************/ // Print out Debug input parameters CommonUtils.writeOutput("", prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput("---Input Variables from deployment plan file: ", prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput(" SERVER_ID= " + serverId, prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput(" SERVER_PATH= " + pathToServersXML, prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput(" VCONN_ID= " + vcsConnId, prefix, "-debug2", logger, debug1, debug2, debug3); // Get the server info from the servers.xml file CompositeServer serverInfo = WsApiHelperObjects.getServerLogger(serverId, pathToServersXML, prefix, logger); serverInfo = validateServerProperties(serverInfo); /* CommonUtils.writeOutput("---Server Info:",prefix,"-debug2",logger,debug1,debug2,debug3); CommonUtils.writeOutput(" Server-user= "+serverInfo.getUser(),prefix,"-debug2",logger,debug1,debug2,debug3); CommonUtils.writeOutput(" Server-password=********",prefix,"-debug2",logger,debug1,debug2,debug3); CommonUtils.writeOutput(" Server-domain= "+serverInfo.getDomain(),prefix,"-debug2",logger,debug1,debug2,debug3); CommonUtils.writeOutput(" Server-host= "+serverInfo.getHostname(),prefix,"-debug2",logger,debug1,debug2,debug3); CommonUtils.writeOutput(" Server-port= "+String.valueOf(serverInfo.getPort()),prefix,"-debug2",logger,debug1,debug2,debug3); CommonUtils.writeOutput(" Server-useHttps="+serverInfo.isUseHttps(),prefix,"-debug2",logger,debug1,debug2,debug3); CommonUtils.writeOutput("",prefix,"-debug2",logger,debug1,debug2,debug3); */ // Ping the Server to make sure it is alive and the values are correct. WsApiHelperObjects.pingServer(serverInfo, true); /***************************************** * INITIALIZE VCS STRUCTURE VARIABLE *****************************************/ // Initialize a new VCS structure for passing to the methods VcsStruct vcsStruct = (new VCSManagerImpl()).new VcsStruct(); // Load the VCS structure and decrypt the vcs password -- Retrieve properties from the deploy.properties file vcsStruct.loadVcs(prefix, vcsUser, vcsPassword); /***************************************** * DISPLAY/VALIDATE VCS VARIABLES *****************************************/ // Validate, Create VCS Workspace and Temp directories vcsStruct.validateVcs(prefix); // Resolve Absolute paths vcsStruct.resolveCanonicalPathsVcs(prefix); // Display VCS variables vcsStruct.displayVcs(prefix); String origResourceType = null; String origResourcePath = null; // Validate VCS Label settings if (vcsLabel == null || vcsLabel.length() == 0) { vcsLabel = null; if (vcsResourcePath == null || vcsResourcePath.trim().length() == 0 || vcsRevision == null || vcsRevision.trim().length() == 0) throw new ValidationException("Resource Path cannot be null or empty for " + prefix); if (vcsResourcePath == null || vcsResourcePath.trim().length() == 0 || vcsRevision == null || vcsRevision.trim().length() == 0) throw new ValidationException("Revision cannot be null or empty for " + prefix); } else { // If the VCS Type is anything other than perforce and the label is being used then throw an exception. if (!vcsStruct.getVcsType().equalsIgnoreCase("P4")) { throw new ValidationException("VCS Resource Type=[" + vcsStruct.getVcsType() + "] is not supported for the use of \"labels\"."); } // Set default values for label to be CIS root folder and revision "HEAD" vcsResourcePath = "/"; vcsResourceType = "FOLDER"; vcsRevision = "HEAD"; } //******************************************************************************************** // Validate vcsResourcePath settings prior to invocation of vcs scripts //******************************************************************************************** origResourcePath = vcsResourcePath; if (vcsResourcePath == null || vcsResourcePath.length() == 0) { throw new ValidationException("VCS Resource Path is null or empty."); } // Encode the VCS resource path vcsResourcePath = ResourceNameCodec.encode(vcsResourcePath); vcsResourcePath = vcsResourcePath.replaceAll("_002F", "/"); //******************************************************************************************** // Validate vcsResourceType settings prior to invocation of vcs scripts //******************************************************************************************** // Get the Resource Type for the VCS Resource Path //vcsResourceType = getResourceManager().getResourceType(serverId, vcsResourcePath, pathToServersXML); origResourceType = vcsResourceType; vcsResourceType = getConvertedVcsResourceType(vcsResourceType); // Validate the resource type if (vcsResourceType == null || vcsResourceType.length() == 0) { throw new ValidationException("VCS Resource Type is null or empty."); } if (!validResourceTypes.contains(vcsResourceType)) { throw new ValidationException("VCS Resource Type=[" + vcsResourceType + "] is not valid. Valid Resource Types=[" + validResourceTypes + "]"); } //******************************************************************************************** // Validate Revision settings prior to invocation of vcs scripts //******************************************************************************************** if (vcsRevision == null || vcsRevision.length() == 0) { throw new ValidationException("VCS Revision is null or empty."); } /* mtinius 2016-04-01: Added ability for revision to be a BASE URL for use with tags or COMMITTED or PREV */ if (vcsRevision.equalsIgnoreCase("HEAD") || vcsRevision.equalsIgnoreCase("BASE") || vcsRevision.equalsIgnoreCase("COMMITTED") || vcsRevision.equalsIgnoreCase("PREV")) { vcsRevision = vcsRevision.toUpperCase(); } else { try { double d = Double.valueOf(vcsRevision); // int i = Integer.parseInt(vcsRevision); } catch (Exception e) { throw new ValidationException("Unable to convert Revision [" + vcsRevision + "] to an decimal value. Make sure there is only an integer or decimal value in this field."); } } // Print out info statements CommonUtils.writeOutput("", prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput("---VCS Module ID Arguments:", prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput(" Resource Path =" + origResourcePath, prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput(" Encoded Resource Path =" + vcsResourcePath, prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput(" Resource Type =" + origResourceType, prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput(" Converted Resource Type=" + vcsResourceType, prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput(" Label =" + vcsLabel, prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput(" Revision =" + vcsRevision, prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput("", prefix, "-info", logger, debug1, debug2, debug3); CommonUtils.writeOutput("-- BEGIN OUTPUT ------------------------------------", prefix, "-info", logger, debug1, debug2, debug3); //-------------------------------------------------------------- // checkout //-------------------------------------------------------------- checkout(vcsResourcePath, vcsResourceType, vcsLabel, vcsRevision, vcsStruct, serverId, pathToServersXML); CommonUtils.writeOutput("", prefix, "-info", logger, debug1, debug2, debug3); CommonUtils.writeOutput("Successfully completed " + actionName + ".", prefix, "-info", logger, debug1, debug2, debug3); CommonUtils.writeOutput("", prefix, "-info", logger, debug1, debug2, debug3); } catch (CompositeException e) { throw new ApplicationContextException(e.getMessage(), e); } }
From source file:com.cisco.dvbu.ps.deploytool.services.PrivilegeManagerImpl.java
private List<PrivilegeEntryType> getPrvileges(String serverId, String privilegeIds, String pathToPrivilegeXML, String pathToServersXML) { // validate incoming arguments if (serverId == null || serverId.trim().length() == 0 || privilegeIds == null || privilegeIds.trim().length() == 0 || pathToServersXML == null || pathToServersXML.trim().length() == 0 || pathToPrivilegeXML == null || pathToPrivilegeXML.trim().length() == 0) { throw new ValidationException("Invalid Arguments"); }/*from ww w . j a v a 2 s . co m*/ try { //using jaxb convert xml to corresponding java objects PrivilegeModule privilegeModule = (PrivilegeModule) XMLUtils.getModuleTypeFromXML(pathToPrivilegeXML); if (privilegeModule != null && privilegeModule.getResourcePrivilege() != null && !privilegeModule.getResourcePrivilege().isEmpty()) { return privilegeModule.getResourcePrivilege(); } } catch (CompositeException e) { logger.error("Error while parsing PrivilegeModule XML: ", e); throw new ApplicationContextException(e.getMessage(), e); } return null; }
From source file:com.cisco.dvbu.ps.deploytool.services.VCSManagerImpl.java
public void vcsCheckout2(String serverId, String vcsConnectionId, String vcsResourcePath, String vcsResourceType, String vcsRevision, String pathToVcsXML, String pathToServersXML, String vcsUser, String vcsPassword) throws CompositeException { if (logger.isDebugEnabled()) { logger.debug("Entering VCSManagerImpl.vcsCheckout2() with following params " + " serverName: " + serverId + " vcsConnectionId: " + vcsConnectionId + ", vcsResourcePath: " + vcsResourcePath + ", vcsResourceType: " + vcsResourceType + ", vcsRevision: " + vcsRevision + ", pathToVcsXML: " + pathToVcsXML + ", pathToServersXML: " + pathToServersXML); }/*from w w w . ja v a 2s . c om*/ try { // Set the VCS Module XML Connection Properties in the JVM Environment setVCSConnectionProperties(vcsConnectionId, pathToVcsXML); vcsConnId = vcsConnectionId; // Invoke the command vcsCheckoutImpl(serverId, vcsResourcePath, vcsResourceType, null, vcsRevision, pathToServersXML, vcsUser, vcsPassword); } catch (CompositeException e) { throw new ApplicationContextException(e.getMessage(), e); } }
From source file:com.cisco.dvbu.ps.deploytool.services.VCSManagerImpl.java
public void vcsCheckout2(String serverId, String vcsConnectionId, String vcsResourcePath, String vcsResourceType, String vcsLabel, String vcsRevision, String pathToVcsXML, String pathToServersXML, String vcsUser, String vcsPassword) throws CompositeException { if (logger.isDebugEnabled()) { logger.debug("Entering VCSManagerImpl.vcsCheckout2() with following params " + " serverName: " + serverId + " vcsConnectionId: " + vcsConnectionId + ", vcsResourcePath: " + vcsResourcePath + ", vcsResourceType: " + vcsResourceType + ", vcsLabel: " + vcsLabel + ", vcsRevision: " + vcsRevision + ", pathToVcsXML: " + pathToVcsXML + ", pathToServersXML: " + pathToServersXML); }//from www . j a v a 2 s .c om try { // Set the VCS Module XML Connection Properties in the JVM Environment setVCSConnectionProperties(vcsConnectionId, pathToVcsXML); vcsConnId = vcsConnectionId; // Invoke the command vcsCheckoutImpl(serverId, vcsResourcePath, vcsResourceType, vcsLabel, vcsRevision, pathToServersXML, vcsUser, vcsPassword); } catch (CompositeException e) { throw new ApplicationContextException(e.getMessage(), e); } }
From source file:com.cisco.dvbu.ps.deploytool.services.VCSManagerImpl.java
public void vcsCheckouts(String serverId, String vcsIds, String pathToVcsXML, String pathToServersXML, String vcsUser, String vcsPassword) throws CompositeException { if (logger.isDebugEnabled()) { logger.debug("Entering VCSManagerImpl.vcsCheckouts() with following params " + " serverName: " + serverId + ", vcsIds: " + vcsIds + ", pathToVcsXML: " + pathToVcsXML + ", pathToServersXML: " + pathToServersXML);/* w ww .j av a2s. c o m*/ } try { // Set the global suppress and debug flags for this class based on properties found in the property file setGlobalProperties(); if (!vcsV2Method) vcsConnId = null; executeVCS(VCSManager.action.CHECKOUT.name(), serverId, vcsIds, pathToVcsXML, pathToServersXML, vcsUser, vcsPassword); } catch (CompositeException e) { throw new ApplicationContextException(e.getMessage(), e); } }
From source file:com.cisco.dvbu.ps.deploytool.services.TriggerManagerImpl.java
private TriggerModule getTriggerModuleXML(String serverId, String triggerIds, String pathToTriggersXML, String pathToServersXML) { // validate incoming arguments if (serverId == null || serverId.trim().length() == 0 || triggerIds == null || triggerIds.trim().length() == 0 || pathToServersXML == null || pathToServersXML.trim().length() == 0 || pathToTriggersXML == null || pathToTriggersXML.trim().length() == 0) { throw new ValidationException("Invalid Arguments"); }//from w w w. jav a 2 s . c om try { //using jaxb convert xml to corresponding java objects TriggerModule triggerModuleType = (TriggerModule) XMLUtils.getModuleTypeFromXML(pathToTriggersXML); if (triggerModuleType != null && triggerModuleType.getTriggerList() != null) { return triggerModuleType; } } catch (CompositeException e) { logger.error("Error while parsing Trigger Module XML", e); throw new ApplicationContextException(e.getMessage(), e); } return null; }
From source file:com.cisco.dvbu.ps.deploytool.services.VCSManagerImpl.java
public void vcsCheckouts2(String serverId, String vcsConnectionId, String vcsIds, String pathToVcsXML, String pathToServersXML, String vcsUser, String vcsPassword) throws CompositeException { if (logger.isDebugEnabled()) { logger.debug("Entering VCSManagerImpl.vcsCheckouts2() with following params " + " serverName: " + serverId + " vcsConnectionId: " + vcsConnectionId + ", vcsIds: " + vcsIds + ", pathToVcsXML: " + pathToVcsXML + ", pathToServersXML: " + pathToServersXML); }// w ww .ja v a 2 s. c o m try { // Set the VCS Module XML Connection Properties in the JVM Environment setVCSConnectionProperties(vcsConnectionId, pathToVcsXML); vcsConnId = vcsConnectionId; // Invoke the command vcsCheckouts(serverId, vcsIds, pathToVcsXML, pathToServersXML, vcsUser, vcsPassword); } catch (CompositeException e) { throw new ApplicationContextException(e.getMessage(), e); } }
From source file:com.cisco.dvbu.ps.deploytool.services.TriggerManagerImpl.java
private List<TriggerType> getTriggers(TriggerListType triggerListType) { try {//from w w w .j a v a2 s . c om if (triggerListType != null && triggerListType.getTrigger() != null && !triggerListType.getTrigger().isEmpty()) { return triggerListType.getTrigger(); } } catch (CompositeException e) { logger.error("Error while parsing Trigger Module XML", e); throw new ApplicationContextException(e.getMessage(), e); } return null; }
From source file:com.cisco.dvbu.ps.deploytool.services.VCSManagerImpl.java
public void vcsCheckin(String serverId, String vcsResourcePath, String vcsResourceType, String vcsMessage, String pathToServersXML, String vcsUser, String vcsPassword) throws CompositeException { if (logger.isDebugEnabled()) { logger.debug("Entering VCSManagerImpl.vcsCheckin() with following params " + " serverName: " + serverId + ", vcsResourcePath: " + vcsResourcePath + ", vcsMessage: " + vcsMessage + ", pathToServersXML: " + pathToServersXML); }// w w w . j a va2s.com try { String prefix = "vcsCheckin"; String actionName = "vcsCheckin"; // Set the Module Action Objective String s1 = (vcsResourcePath == null) ? "no_vcsResourcePath" : vcsResourcePath; System.setProperty("MODULE_ACTION_OBJECTIVE", "CHECKIN : " + s1); // Set the global suppress and debug flags for this class based on properties found in the property file setGlobalProperties(); CommonUtils.writeOutput("***** BEGIN COMMAND: " + actionName + " *****", prefix, "-info", logger, debug1, debug2, debug3); CommonUtils.writeOutput("", prefix, "-info", logger, debug1, debug2, debug3); /***************************************** * VALIDATE COMMAND-LINE VARIABLES *****************************************/ // Validate the arguments if (serverId == null || serverId.trim().length() == 0 || vcsResourcePath == null || vcsResourcePath.trim().length() == 0 || vcsMessage == null || vcsMessage.trim().length() == 0 || pathToServersXML == null || pathToServersXML.trim().length() == 0) { throw new ValidationException("Invalid Arguments for " + prefix); } // Validate whether the files exist or not if (!CommonUtils.fileExists(pathToServersXML)) { throw new ValidationException("File [" + pathToServersXML + "] does not exist."); } /***************************************** * PRINT OUT COMMAND-LINE VARIABLES *****************************************/ // Print out Debug input parameters CommonUtils.writeOutput("", prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput("---Input Variables from deployment plan file: ", prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput(" SERVER_ID= " + serverId, prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput(" SERVER_PATH= " + pathToServersXML, prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput(" VCONN_ID= " + vcsConnId, prefix, "-debug2", logger, debug1, debug2, debug3); // Get the server info from the servers.xml file CompositeServer serverInfo = WsApiHelperObjects.getServerLogger(serverId, pathToServersXML, prefix, logger); serverInfo = validateServerProperties(serverInfo); // Ping the Server to make sure it is alive and the values are correct. WsApiHelperObjects.pingServer(serverInfo, true); /***************************************** * INITIALIZE VCS STRUCTURE VARIABLE *****************************************/ // Initialize a new VCS structure for passing to the methods VcsStruct vcsStruct = (new VCSManagerImpl()).new VcsStruct(); // Load the VCS structure and decrypt the vcs password -- Retrieve properties from the deploy.properties file vcsStruct.loadVcs(prefix, vcsUser, vcsPassword); /***************************************** * DISPLAY/VALIDATE VCS VARIABLES *****************************************/ // Validate, Create VCS Workspace and Temp directories vcsStruct.validateVcs(prefix); // Resolve Absolute paths vcsStruct.resolveCanonicalPathsVcs(prefix); // Display VCS variables vcsStruct.displayVcs(prefix); String origResourceType = null; String origResourcePath = null; //******************************************************************************************** // Validate vcsResourcePath settings prior to invocation of vcs scripts //******************************************************************************************** origResourcePath = vcsResourcePath; if (vcsResourcePath == null || vcsResourcePath.length() == 0) { throw new ValidationException("VCS Resource Path is null or empty."); } // Encode the VCS resource path vcsResourcePath = ResourceNameCodec.encode(vcsResourcePath); vcsResourcePath = vcsResourcePath.replaceAll("_002F", "/"); //******************************************************************************************** // Validate vcsResourceType settings prior to invocation of vcs scripts //******************************************************************************************** // Get the Resource Type for the VCS Resource Path origResourceType = vcsResourceType; vcsResourceType = getConvertedVcsResourceType(vcsResourceType); // Validate the resource type if (vcsResourceType == null || vcsResourceType.length() == 0) { throw new ValidationException("VCS Resource Type is null or empty."); } if (!validResourceTypes.contains(vcsResourceType)) { throw new ValidationException("VCS Resource Type=[" + vcsResourceType + "] is not valid. Valid Resource Types=[" + validResourceTypes + "]"); } //******************************************************************************************** // Validate Message settings prior to invocation of vcs scripts //******************************************************************************************** // Check the VCS_MESSAGE_MANDATORY=true and determine whether the incoming message is null or empty and throw an exception. /* 3-7-2012: may not need String messageMandatory = vcsStruct.getVcsMessageMandatory(); if (messageMandatory.equalsIgnoreCase("true")) { if (vcsMessage == null || vcsMessage.length() == 0) { throw new ValidationException("The comment message may not be null or empty."); } } */ // Prepend the property VCS_MESSAGE_PREPEND to message String messagePrepend = vcsStruct.getVcsMessagePrepend(); if (messagePrepend != null && messagePrepend.length() > 0) { if (vcsMessage == null) { vcsMessage = messagePrepend; } else { vcsMessage = messagePrepend + " " + vcsMessage; } } // Validate the message is not null or emtpy if (vcsMessage == null || vcsMessage.length() == 0) { throw new ValidationException("VCS Message is null or empty."); } // Print out info statements CommonUtils.writeOutput("", prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput("---VCS Module ID Arguments:", prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput(" Resource Path =" + origResourcePath, prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput(" Encoded Resource Path =" + vcsResourcePath, prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput(" Resource Type =" + origResourceType, prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput(" Converted Resource Type=" + vcsResourceType, prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput(" Message =" + vcsMessage, prefix, "-debug2", logger, debug1, debug2, debug3); CommonUtils.writeOutput("", prefix, "-info", logger, debug1, debug2, debug3); CommonUtils.writeOutput("-- BEGIN OUTPUT ------------------------------------", prefix, "-info", logger, debug1, debug2, debug3); //-------------------------------------------------------------- // checkin //-------------------------------------------------------------- checkin(vcsResourcePath, vcsResourceType, vcsMessage, vcsStruct, serverId, pathToServersXML); CommonUtils.writeOutput("", prefix, "-info", logger, debug1, debug2, debug3); CommonUtils.writeOutput("Successfully completed " + actionName + ".", prefix, "-info", logger, debug1, debug2, debug3); CommonUtils.writeOutput("", prefix, "-info", logger, debug1, debug2, debug3); } catch (CompositeException e) { throw new ApplicationContextException(e.getMessage(), e); } }