MPSITE-31: Make arguments of chmod in sshdeploy configurable

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@280713 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ltheussl 2005-09-13 23:26:27 +00:00
parent 1be0be6122
commit 45ce14dc42
4 changed files with 18 additions and 1 deletions

View File

@ -184,7 +184,7 @@
</exec>
<exec dir="." executable="${maven.ssh.executable}" failonerror="true">
<arg line="${maven.ssh.args} -l ${siteUsername} ${siteAddress} 'cd ${maven.homepage} &amp;&amp; ${maven.site.gunzip.executable} ${maven.final.name}-site.tar.gz &amp;&amp; ${maven.site.tar.executable} ${maven.site.tar.options} ${maven.final.name}-site.tar &amp;&amp; chmod -Rf g+u * . &amp;&amp; rm ${maven.final.name}-site.tar'"/>
<arg line="${maven.ssh.args} -l ${siteUsername} ${siteAddress} 'cd ${maven.homepage} &amp;&amp; ${maven.site.gunzip.executable} ${maven.final.name}-site.tar.gz &amp;&amp; ${maven.site.tar.executable} ${maven.site.tar.options} ${maven.final.name}-site.tar &amp;&amp; chmod ${maven.site.chmod.options} ${maven.site.chmod.mode} * . &amp;&amp; rm ${maven.final.name}-site.tar'"/>
</exec>
<delete file="${maven.build.dir}/${maven.final.name}-site.tar.gz"/>

View File

@ -29,6 +29,8 @@ maven.site.deploy.method=ssh
maven.site.tar.executable=tar
maven.site.tar.options=xvf
maven.site.gunzip.executable=gunzip
maven.site.chmod.options=-Rf
maven.site.chmod.mode=g+u
maven.rsync.executable=rsync

View File

@ -23,6 +23,7 @@
</properties>
<body>
<release version="1.6.2-SNAPSHOT" date="In SVN">
<action dev="ltheussl" type="add" issue="MPSITE-31">Make <code>chmod</code> options in <code>site:sshdeploy</code> configurable.</action>
<action dev="ltheussl" type="fix" issue="MPSITE-24" due-to="Julian Dunn">SSH arguments not used in <code>sshdeploy</code> with 'clean'.</action>
<action dev="aheritier" type="fix" issue="MPSITE-28" due-to="Davy Toch">Deploying the site documentation through SSH always results in 'Build Successful'.</action>
<action dev="aheritier" type="fix" issue="MPSITE-27">FTP deployment doesn't create the remote directory root.</action>

View File

@ -122,6 +122,20 @@
Specifies optional parameters that are passed to the ssh executable.
</td>
</tr>
<tr>
<td>maven.site.chmod.options</td>
<td>Yes</td>
<td>
Specifies options passed to the chmod executable. Default is '<code>-Rf</code>'.
</td>
</tr>
<tr>
<td>maven.site.chmod.mode</td>
<td>Yes</td>
<td>
Specifies the mode set by the chmod executable. Default is '<code>g+u</code>'.
</td>
</tr>
<tr>
<td>maven.site.deploy.method</td>
<td>Yes</td>