You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ju...@t-systems.com on 2004/02/05 16:03:19 UTC

ANT + CVS +SSH + Cygwin problems

Hello,

I have gor again a stupid problem with cvs running with ssh. Connecting to cvs directly from prompt (cygwin) is running (after entering password), but running the cvs task from ANT fails. The last message I get is:

Execute:Java13CommandLauncher: Executing 'cvs' with arguments:
'-d:ext:j@cvs.de:/daten/cvs/asdfsadf'
'checkout'
'Modules/Commons'

The ' characters around the executable and arguments are
not part of the command.

CVS and CVS_RSH are set / and in path. Has someone an idea?

Juraj

Full stack trace:
$ ant -debug
Apache Ant version 1.6.0 compiled on December 18 2003
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.4 in: c:\j2sdk1.4.2_03\jre
Detected OS: Windows 2000
Adding reference: ant.ComponentHelper
Setting ro project property: ant.version -> Apache Ant version 1.6.0 compiled on
 December 18 2003
Setting ro project property: ant.file -> d:\ContinuousIntegration\Cruisecontrol\
bin\IK-Commons\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile d:\ContinuousIntegration\Cruisecontrol\bin\IK-Commons\build.xm
l with URI = file:///D:/ContinuousIntegration/Cruisecontrol/bin/IK-Commons/build
.xml
Setting ro project property: ant.project.name -> IK-Commons-Wrapper
Adding reference: IK-Commons-Wrapper
Setting ro project property: ant.file.IK-Commons-Wrapper -> d:\ContinuousIntegra
tion\Cruisecontrol\bin\IK-Commons\build.xml
Project base dir set to: D:\ContinuousIntegration\Cruisecontrol\bin\IK-Commons
 +Target:
 +Target: masterbuild
Build sequence for target `masterbuild' is [masterbuild]
Complete build sequence is [masterbuild, ]

masterbuild:
      [cvs] Executing 'cvs' with arguments:
      [cvs] '-d:ext:j@cvs.de:/daten/cvs/dfgjdgf'
      [cvs] 'checkout'
      [cvs] 'Modules/Commons'
      [cvs]
      [cvs] The ' characters around the executable and arguments are
      [cvs] not part of the command.
Execute:Java13CommandLauncher: Executing 'cvs' with arguments:
'-d:ext:j@cvs.de:/daten/cvs/asdfsadf'
'checkout'
'Modules/Commons'

The ' characters around the executable and arguments are
not part of the command.




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ANT + CVS +SSH + Cygwin problems

Posted by "Alexey N. Solofnenko" <A....@mdl.com>.
I had this problem when everything was working from Cygwin but not from 
JBuilder. I replaced JBuilder's cvs with Cygwin's one and JBuilder 
started to work. I think you have Windows CVS somewhere on PATH.

- Alexey.

Juraj.Lenharcik@t-systems.com wrote:

>Hello,
>
>I have gor again a stupid problem with cvs running with ssh. Connecting to cvs directly from prompt (cygwin) is running (after entering password), but running the cvs task from ANT fails. The last message I get is:
>
>Execute:Java13CommandLauncher: Executing 'cvs' with arguments:
>'-d:ext:j@cvs.de:/daten/cvs/asdfsadf'
>'checkout'
>'Modules/Commons'
>
>The ' characters around the executable and arguments are
>not part of the command.
>
>CVS and CVS_RSH are set / and in path. Has someone an idea?
>
>Juraj
>
>Full stack trace:
>$ ant -debug
>Apache Ant version 1.6.0 compiled on December 18 2003
>Buildfile: build.xml
>Adding reference: ant.PropertyHelper
>Detected Java version: 1.4 in: c:\j2sdk1.4.2_03\jre
>Detected OS: Windows 2000
>Adding reference: ant.ComponentHelper
>Setting ro project property: ant.version -> Apache Ant version 1.6.0 compiled on
> December 18 2003
>Setting ro project property: ant.file -> d:\ContinuousIntegration\Cruisecontrol\
>bin\IK-Commons\build.xml
>Adding reference: ant.projectHelper
>Adding reference: ant.parsing.context
>Adding reference: ant.targets
>parsing buildfile d:\ContinuousIntegration\Cruisecontrol\bin\IK-Commons\build.xm
>l with URI = file:///D:/ContinuousIntegration/Cruisecontrol/bin/IK-Commons/build
>.xml
>Setting ro project property: ant.project.name -> IK-Commons-Wrapper
>Adding reference: IK-Commons-Wrapper
>Setting ro project property: ant.file.IK-Commons-Wrapper -> d:\ContinuousIntegra
>tion\Cruisecontrol\bin\IK-Commons\build.xml
>Project base dir set to: D:\ContinuousIntegration\Cruisecontrol\bin\IK-Commons
> +Target:
> +Target: masterbuild
>Build sequence for target `masterbuild' is [masterbuild]
>Complete build sequence is [masterbuild, ]
>
>masterbuild:
>      [cvs] Executing 'cvs' with arguments:
>      [cvs] '-d:ext:j@cvs.de:/daten/cvs/dfgjdgf'
>      [cvs] 'checkout'
>      [cvs] 'Modules/Commons'
>      [cvs]
>      [cvs] The ' characters around the executable and arguments are
>      [cvs] not part of the command.
>Execute:Java13CommandLauncher: Executing 'cvs' with arguments:
>'-d:ext:j@cvs.de:/daten/cvs/asdfsadf'
>'checkout'
>'Modules/Commons'
>
>The ' characters around the executable and arguments are
>not part of the command.
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: ANT + CVS +SSH + Cygwin problems

Posted by Antoine Lévy-Lambert <an...@antbuild.com>.
Not sure what your problem is :
- possibility one :
  when ant starts cvs the CVS_RSH is not set right for you; there is an 
attribute of the cvs task to set it explicitly independently of your 
environment
- possibility two
  the cvs pass file is not found
if you start ant under cygwin, a system property cygwin.user.home is set 
by the ant script.
the cvs task uses this property or the user.home property if 
cygwin.user.home is not defined  locate the .cvspass file
Do you have a .cvspass file in your cygwin home directory ?

- possibility three :
   when cvs spawns ssh for you, ssh does not find your HOME and 
especially your .ssh dir containing your keys
   (I do not think that this is the problem, but why not)

One thing you can try is to replace cvs  by a script which echoes all 
its command arguments and the environment into a file, then you might be 
able to figure out what is going wrong.


Antoine

Juraj.Lenharcik@t-systems.com wrote:

>Hello,
>
>I have gor again a stupid problem with cvs running with ssh. Connecting to cvs directly from prompt (cygwin) is running (after entering password), but running the cvs task from ANT fails. The last message I get is:
>
>Execute:Java13CommandLauncher: Executing 'cvs' with arguments:
>'-d:ext:j@cvs.de:/daten/cvs/asdfsadf'
>'checkout'
>'Modules/Commons'
>
>The ' characters around the executable and arguments are
>not part of the command.
>
>CVS and CVS_RSH are set / and in path. Has someone an idea?
>
>Juraj
>
>Full stack trace:
>$ ant -debug
>Apache Ant version 1.6.0 compiled on December 18 2003
>Buildfile: build.xml
>Adding reference: ant.PropertyHelper
>Detected Java version: 1.4 in: c:\j2sdk1.4.2_03\jre
>Detected OS: Windows 2000
>Adding reference: ant.ComponentHelper
>Setting ro project property: ant.version -> Apache Ant version 1.6.0 compiled on
> December 18 2003
>Setting ro project property: ant.file -> d:\ContinuousIntegration\Cruisecontrol\
>bin\IK-Commons\build.xml
>Adding reference: ant.projectHelper
>Adding reference: ant.parsing.context
>Adding reference: ant.targets
>parsing buildfile d:\ContinuousIntegration\Cruisecontrol\bin\IK-Commons\build.xm
>l with URI = file:///D:/ContinuousIntegration/Cruisecontrol/bin/IK-Commons/build
>.xml
>Setting ro project property: ant.project.name -> IK-Commons-Wrapper
>Adding reference: IK-Commons-Wrapper
>Setting ro project property: ant.file.IK-Commons-Wrapper -> d:\ContinuousIntegra
>tion\Cruisecontrol\bin\IK-Commons\build.xml
>Project base dir set to: D:\ContinuousIntegration\Cruisecontrol\bin\IK-Commons
> +Target:
> +Target: masterbuild
>Build sequence for target `masterbuild' is [masterbuild]
>Complete build sequence is [masterbuild, ]
>
>masterbuild:
>      [cvs] Executing 'cvs' with arguments:
>      [cvs] '-d:ext:j@cvs.de:/daten/cvs/dfgjdgf'
>      [cvs] 'checkout'
>      [cvs] 'Modules/Commons'
>      [cvs]
>      [cvs] The ' characters around the executable and arguments are
>      [cvs] not part of the command.
>Execute:Java13CommandLauncher: Executing 'cvs' with arguments:
>'-d:ext:j@cvs.de:/daten/cvs/asdfsadf'
>'checkout'
>'Modules/Commons'
>
>The ' characters around the executable and arguments are
>not part of the command.
>
>
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org