ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin de Dardel <benjamin.dedar...@gmail.com>
Subject catching stream within ExecTask
Date Wed, 11 Nov 2009 12:00:37 GMT
Hi all,

I'm working on a project : ant4hg which aims to surround hg executable 
using ExecTask.
I have a problem with : 'hg clone 
ssh://bdedardel@ant4hg.hg.sourceforge.net/hgroot/ant4hg/ant4hg'
because it uses a third party tool : ssh.exe.

It's OK for (without third party tool) :

    <echo message="hg clone
    http://ant4hg.hg.sourceforge.net:8000/hgroot/ant4hg/ant4hg" />
    <exec dir="." executable="hg">
        <arg line="clone" />
        <arg
    line="http://ant4hg.hg.sourceforge.net:8000/hgroot/ant4hg/ant4hg" />
    </exec>

    /[echo] hg clone
    http://ant4hg.hg.sourceforge.net:8000/hgroot/ant4hg/ant4hg
    [exec] destination directory: ant4hg
    [exec] no changes found
    [exec] updating working directory
    [exec] 0 files updated, 0 files merged, 0 files removed, 0 files
    unresolve
    /


But not for :

    <echo message="hg clone
    ssh://bdedardel@ant4hg.hg.sourceforge.net/hgroot/ant4hg/ant4hg " />
        <exec dir="." executable="hg">
        <arg line="clone" />
        <arg
    line="ssh://bdedardel@ant4hg.hg.sourceforge.net/hgroot/ant4hg/ant4hg
    " />
    </exec>

    /[echo] hg clone
    ssh://bdedardel@ant4hg.hg.sourceforge.net/hgroot/ant4hg/ant4hg    
    /

... waiting ...

Here is the shell command line (it asks me for password) :

     > hg clone
    ssh://bdedardel@ant4hg.hg.sourceforge.net/hgroot/ant4hg/ant4hg
    bdedardel@ant4hg.hg.sourceforge.net's password:
    destination directory: ant4hg
    no changes found
    updating working directory
    0 files updated, 0 files merged, 0 files removed, 0 files unresolved

Do you have any idea about catching ssh stream ???

Regards,
Benjamin


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message