ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Mountain <>
Subject Re: Ant CVS checkout from Apache CVS
Date Wed, 16 Jul 2003 20:12:22 GMT
On Wednesday 16 Jul 2003 9:07 pm, Vikas Phonsa spake thus:
> <target name="cvsLogin" depends="init" >
> 	<cvspass cvsroot="${cvsroot}" password="${apac.pass}"/>
> 	<cvs cvsRoot="${cvsroot}" command="login password:${apac.pass}"
> failonerror="true"/>
> </target>
> <target name="cvsCheck" depends="cvsLogin" >
> 	<cvspass cvsroot="${cvsroot}" password="${apac.pass}"/>
> 	<cvs cvsRoot="${cvsroot}" command="checkout ant" dest="${dest.dir}"
> failonerror="true"/>
> </target>
> And it takes forever for the cvsLogin target to complete and the cvsCheck
> task is never reached. My WSDC IDE pops up a dos screen when its at the
> login target and then nothing happens & I have to terminate the build. The
> server paths,password etc seem fine but I get the following errors:

Your build file is wrong from what I can tell.  Basically, you are doing 
cvspass (twice!) (which does the work of "cvs login") and also trying to do a 
cvs login in your cvsLogin target.

The reason it never ends is the command value you set (it's incorrect: 
command="login password:${apac.pass}"): you are actually being prompted for 
the password (but I guess you never see this from within your IDE - try it 
from the command prompt, you'll see...

Here's a version that works:

<?xml version="1.0" encoding="iso-8859-1" ?>

  <project name="test" default="cvsCheck" basedir=".">

    <property name="cvsroot"
    <property name="apac.pass" value="anoncvs" />

    <target name="init"/>

    <target name="cvsLogin" depends="init">
      <cvspass cvsroot="${cvsroot}" password="${apac.pass}"/>

    <target name="cvsCheck" depends="cvsLogin" >
      <cvs cvsRoot="${cvsroot}" command="checkout" package="ant" dest="."



Eric Mountain - erina zero zero un a nerim point net

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message