Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPDEPLOY-8 Here is an overview of the issue: --------------------------------------------------------------------- Key: MPDEPLOY-8 Summary: Issue each siteCommand individually Type: Improvement Status: Unassigned Priority: Minor Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: maven-deploy-plugin Assignee: Reporter: Bruce Chenoweth Created: Tue, 6 Apr 2004 6:17 PM Updated: Tue, 6 Apr 2004 6:17 PM Environment: Windows Description: In a few cases, I have run over the character limit allowed for my ssh tool to issue in a single command when performing the maven dist:deploy target (very long artifactIds and site paths). I have prototyped a version that executes each site command individually. This has the added side benefit of better logging to the console during operation. Here is my prototype: <j:set var="siteCommandX" value="${siteCommand}X"/> <j:if test="${siteCommandX != 'X'}"> <j:useBean var="strings" class="org.apache.commons.lang.StringUtils"/> <j:set var="siteCommand" value='${strings.replace(siteCommand, "@deployDirectory@", resolvedDirectory)}' /> <j:set var="siteCommands2" value='${strings.replace(siteCommand, ">", "]")}' /> <j:set var="siteCmdDir" value="${resolvedDirectory}" /> <util:tokenize var="siteCmds" delim=";">${siteCommands2}</util:tokenize> <j:forEach var="siteCmd" items="${siteCmds}"> <j:choose> <j:when test="${siteCmd.startsWith('cd ')}"> <j:set var="siteCmdDir" value="${siteCmd.substring(3)}" /> <ant:echo message="siteCmdDir='${siteCmdDir}'" /> </j:when> <j:otherwise> <j:set var="siteCmd" value='${strings.replace(siteCmd, "]", ">")}' /> <ant:echo message="ssh [EMAIL PROTECTED] '${siteCmd.trim()}'" /> <ant:exec dir="." executable="${commander}"> <arg value="${maven.ssh.args}"/> <arg value="${siteAddress}"/> <arg value="-l"/> <arg value="${username}"/> <arg value="cd ${siteCmdDir}; ${siteCmd.trim()}"/> </ant:exec> </j:otherwise> </j:choose> </j:forEach> </j:if> --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
