I have added this patch to my maven installation to allow me to specify
which tar and gunzip executable to use when performing a
site:deploy...this helped me out greatly when deploying to a Sun server
with the Sun freeware file-utils package installed. The default is
still just 'tar' and 'gunzip' but the option is now present to use
anything.
Enjoy.
--
John Casey <[EMAIL PROTECTED]>
Index: src/plugins-build/site/plugin.jelly
===================================================================
RCS file: /home/cvspublic/maven/src/plugins-build/site/plugin.jelly,v
retrieving revision 1.12
diff -w -c -r1.12 plugin.jelly
*** src/plugins-build/site/plugin.jelly 30 Mar 2003 16:17:20 -0000 1.12
--- src/plugins-build/site/plugin.jelly 1 Apr 2003 15:58:29 -0000
***************
*** 99,105 ****
</exec>
<exec dir="." executable="${maven.ssh.executable}">
! <arg line="${pom.siteAddress} -l ${maven.username} 'cd ${maven.homepage};gunzip ${maven.final.name}-site.tar.gz;tar xUvf ${maven.final.name}-site.tar;chmod -R g+u *;rm ${maven.final.name}-site.tar'"/>
</exec>
<delete file="${maven.build.dir}/${maven.final.name}-site.tar.gz"/>
--- 99,105 ----
</exec>
<exec dir="." executable="${maven.ssh.executable}">
! <arg line="${pom.siteAddress} -l ${maven.username} 'cd ${maven.homepage};${maven.remote.gunzip.executable} ${maven.final.name}-site.tar.gz;${maven.remote.tar.executable} xUvf ${maven.final.name}-site.tar;chmod -R g+u *;rm ${maven.final.name}-site.tar'"/>
</exec>
<delete file="${maven.build.dir}/${maven.final.name}-site.tar.gz"/>
Index: src/plugins-build/site/plugin.properties
===================================================================
RCS file: /home/cvspublic/maven/src/plugins-build/site/plugin.properties,v
retrieving revision 1.2
diff -w -c -r1.2 plugin.properties
*** src/plugins-build/site/plugin.properties 25 Jan 2003 18:19:55 -0000 1.2
--- src/plugins-build/site/plugin.properties 1 Apr 2003 15:58:29 -0000
***************
*** 10,14 ****
--- 10,17 ----
# to copy the site to
maven.site.deploy.method=ssh
+ maven.remote.tar.executable=tar
+ maven.remote.gunzip.executable=gunzip
+
maven.username=USERNAME_NOT_SET
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]