| Checking out with CVS_RSH=ssh using ant | Checking out with CVS_RSH=ssh using ant 2005-05-24 - By Todd Nine
Hi all, I'm trying to execute an ant target that checks out server configuration files and uploads them to all of the nodes in a cluster. I have the upload part working if I pull the configurations down from CVS manually, but I can't seem to get the cvs task to work correctly. Here is my cvs task.
<!-- check out over ssh --> <target name="cvscheckout"> <property name="cvsroot" value=":ext:${username}@${cvs.server}:${ cvs.repository.base}"/> <property name="cvspass" value="temp"/> <echo>cvsroot ${cvsroot}</echo> <!-- set our password temporarily , 99.9% sure this is completely useless when CVS_RSH = ssh--> <cvspass cvsroot="${cvsroot}" password="${password}" passfile="${cvspass}" />
<echo>checking out from ${cvs.repository}/${environment}</echo> <echo>environment ${environment}</echo> <cvs cvsRoot="${cvsroot}"
package="${cvs.repository}" dest="${environment}" passfile="${cvspass}" cvsrsh="ssh" port="22"
/>
<delete file="temp"/> </target>
Below is the verbose output from the ssh task.
cvscheckout: [echo] cvsroot :ext:testuser@(protected):/a01/proj/CVS [echo] checking out from serverconfig/atatest [echo] environment atatest [cvs] Using cvs passfile: C:\serverconfig\serverconfig\script\temp [cvs] Executing 'cvs' with arguments: [cvs] '-d:ext:testuser@(protected):/a01/proj/CVS' [cvs] 'checkout' [cvs] 'serverconfig' [cvs] [cvs] The ' characters around the executable and arguments are [cvs] not part of the command. [cvs] [cvs] [cvs] environment: [cvs] [cvs] ALLUSERSPROFILE=C:\Documents and Settings\All Users [cvs] ANT_HOME=c:/serverconfig/serverconfig/script/apache-ant-1.6.4 [cvs] APPDATA=C:\Documents and Settings\c200506\Application Data [cvs] COMMONPROGRAMFILES=C:\Program Files\Common Files [cvs] COMPUTERNAME=PC2888 [cvs] COMSPEC=C:\WINNT\system32\cmd.exe [cvs] HOME=c:\Documents and Settings\c200506 [cvs] HOMEDRIVE=C: [cvs] HOMEPATH=\ [cvs] HOSTNAME=PC2888 [cvs] INFOPATH=/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info: /usr/autotool/stable/info: [cvs] JAVA_HOME=c:/appdev/jvm/jdk-1.4 [cvs] LOGONSERVER=\\INNT-35 [cvs] MAKE_MODE=unix [cvs] MANPATH=/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr /ssl/man [cvs] NODE_ID=000BCDB207C6 [cvs] NUMBER_OF_PROCESSORS=1 [cvs] NWLANGUAGE=ENGLISH [cvs] NWUSERNAME=c200506 [cvs] OLDPWD=/cygdrive/c/serverconfig/serverconfig [cvs] OS2LIBPATH=C:\WINNT\system32\os2\dll; [cvs] OS=Windows_NT [cvs] PATH=C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\cygwin\bin;C:\cygwin\usr\X11R6 \bin;c:\WINNT\system32;c:\WINNT;c:\WINNT\System32\Wbem;c:\WINNT\system32\nls;c: \WINNT\system32\nls\ENGLISH;c:\appdev\jvm\jdk- 1.4\bin;Z;.\;Y;.\;X;.\;.\;c:\serverconfig\serverconfig\script\apache- ant-1.6.4\bin [cvs] PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH [cvs] PRINTER=\\AMTRAN\IN_Y2K_HPLJ4000-PRT1.IS.IN.ATA [cvs] PROCESSOR_ARCHITECTURE=x86 [cvs] PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel [cvs] PROCESSOR_LEVEL=15 [cvs] PROCESSOR_REVISION=0207 [cvs] PROGRAMFILES=C:\Program Files [cvs] PROMPT=$P$G [cvs] PS1=\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ [cvs] PWD=/cygdrive/c/serverconfig/serverconfig/script [cvs] SHLVL=1 [cvs] SYSTEMDRIVE=C: [cvs] SYSTEMROOT=C:\WINNT [cvs] TEMP=c:\DOCUME~1\c200506\LOCALS~1\Temp [cvs] TERM=cygwin [cvs] TMP=c:\DOCUME~1\c200506\LOCALS~1\Temp [cvs] USER=c200506 [cvs] USERDOMAIN=ATA_COM [cvs] USERNAME=c200506 [cvs] USERPROFILE=C:\Documents and Settings\c200506 [cvs] USER_ID=c200506 [cvs] WINDIR=C:\WINNT [cvs] WINDOWS_LOGIN=0 [cvs] _=./pushconfig.sh [cvs] CVS_CLIENT_PORT=22 [cvs] CVS_PASSFILE=C:\serverconfig\serverconfig\script\temp [cvs] CVS_RSH=ssh
Nothing ever happens, it just hangs forever. Has anyone done this successfully?
|
|
 |