You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/06/25 17:37:35 UTC
[jira] Closed: (MPDEPLOY-8) Issue each siteCommand individually
Message:
The following issue has been closed.
Resolver: Brett Porter
Date: Fri, 25 Jun 2004 11:35 AM
set the properties for the artifact plugin and the legacy deploy method will not be used. The artifact plugin issues them one at a time.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/MPDEPLOY-8
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPDEPLOY-8
Summary: Issue each siteCommand individually
Type: Improvement
Status: Closed
Priority: Minor
Resolution: WON'T FIX
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: Fri, 25 Jun 2004 11:35 AM
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 ${username}@${siteAddress} '${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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org