ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Svetlin Stanchev" <stanc...@360t.com>
Subject RE: how to provide user_name & password info to cvs
Date Fri, 15 Aug 2003 08:58:38 GMT
Example for approach (1) below:

    <property environment="env"/>    
    <property name="cvs.authtype" value="pserver"/>
    <property name="cvs.username" value="cvs"/>
    <property name="cvs.host" value="192.168.0.53"/>
    <property name="cvs.repository" value="/cvs/repository"/>
    <property name="cvs.passfile" value="${user.home}/.cvspass"/>
    <property name="env.CVSROOT"
 
value=":${cvs.authtype}:${cvs.username}@${cvs.host}:${cvs.repository}"/>
    <property name="CVSROOT" value="${env.CVSROOT}"/> 

  <target name="setcvspass" 
    description="Sets the CVS password file in ${user.home}/.cvspass.">
    <input
      message="What is the password for user ${cvs.username} on
${CVSROOT}?"
      addproperty="cvs.password"/>
    <cvspass cvsroot="${CVSROOT}"
      password="${cvs.password}"
      passfile="${cvs.passfile}"/>
  </target>

  <target name="testcvsconn" 
    description="Tests the connection to the CVS server by checking out
the ${CVSROOT}/modules file.">
    <cvs cvsRoot="${CVSROOT}"
      command="co -c"
      passfile="${cvs.passfile}"
      failonerror="yes"/>
  </target>

-- 
Svetlin


> -----Original Message-----
> From: Stefan Bodewig [mailto:bodewig@apache.org] 
> Sent: Friday, August 15, 2003 9:56 AM
> To: user@ant.apache.org
> Subject: Re: how to provide user_name & password info to cvs
> 
> 
> On Thu, 14 Aug 2003, Kumar Senthil <Senthil.Kumar@acxiom.com> wrote:
> 
> > Can you please tell me how to provide the userName, 
> password info when 
> > I am checking out files from CVS.
> 
> Basically two ways:
> 
> (1) Use <cvspass/> before <cvs/>.
> 
> (2) login into your cvs server via the command line or 
> whatever client you are used to before running the Ant script.
> 
> Stefan
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message