You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Benjamin de Dardel <be...@gmail.com> on 2009/11/11 13:00:37 UTC

catching stream within ExecTask

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