maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gabriel Bauman <g...@bravenet.com>
Subject Re: ssh or scp on windows
Date Thu, 26 Jun 2003 18:10:50 GMT
> I wasn't
> sure if putty could be used from the command line, and that is why I was
> asking about other ssh clients.

Oh! Well, you want to use "plink.exe" or "pscp.exe" instead of putty.exe 
on the command line.

To execute a command on the remote host:
plink -ssh user@host 'remote_commands_to_execute'

To copy a file to a remote host:
pscp c:\local\file.ext user@remote.host:/path/to/remote/folder

To copy a file from a remote host
pscp user@remote.host:/path/to/remote/folder/file.ext c:\local\

I have never done deployment quite the way you seem to be doing it, so I 
can't really comment, but my custom deployment stuff in my maven.xml is 
along the lines of:

<goal name="myproject:deploy"
         description="Deploy stuff">
         <attainGoal name="war"/>
         <echo>
             +-------------------------------------------------------+
             | Deploying WAR file.                                   |
             +-------------------------------------------------------+
         </echo>

         <ant:exec dir="." 
executable="${context.getVariable('maven.scp.executable')}">
             <ant:arg line="-C -r -q 
'${basedir}/target/${maven.final.name}.war' 
user@host:/home/stuff/webapps/${maven.final.name}.war"/>
         </ant:exec>
</goal>

where maven.scp.executable is 'pscp'.

Hope that helps.

Gabe


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message