ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "STEPHENSON, Jill" <Jill.STEPHEN...@suncorpmetway.com.au>
Subject RE: Problem with CVS Task in the ANT tool
Date Fri, 09 Nov 2001 05:39:31 GMT
Is cvs in your path and can you connect to cvs from outside of ant?

Try running the same cvs command that ant is running from the command line

cvs -d :psersver:pravin@star.objectorb.com:/usr/cvsroot checkout
MDLProductNov15

--
Jill

> -----Original Message-----
> From:	Daniel Pravin [SMTP:daniel_pravin@yahoo.com]
> Sent:	Friday, 9 November 2001 15:22
> To:	ant-user@jakarta.apache.org
> Subject:	Problem with CVS Task in the ANT tool
> 
> Hai,
> 
>   I have problem in the CVS Task in the ANT tool. I am
> using the cvs task for getting our project files from a cvs
> server which is running in LINUX operating system . we are
> using .rhosts files for authentication.
> 
>  I have problem connecting the cvs server , It is
> throughing IOException , Hope Someone will through some
> light into this
> 
> 
> My ANT XML file code :
> ----------------------
> 
> <project name="CVS_TASK" default="CVS">
> 
>   <!-- The CVS Root variable value -->	
>   <property name="cvs.root"
> value=":psersver:pravin@star.objectorb.com:/usr/cvsroot"/>
> 
>   <!-- The CVS Checkout Module Name -->	
>   <property name="cvs.pack" value="Project1"/>
> 
>   <!-- The CVS Checkout Destination Directory -->	
>   <property name="proj.dir" value="D:\Project1"/>
> 
>   
>   <target name="CVS" description="cvs task">
> 	<record name="cvsLog.txt" append="no" action="start"
> loglevel="verbose"/>
> 	
>        	    <cvs cvsRoot="${cvs.root}"
> package="${cvs.pack}" dest="${proj.dir}"
> passfile="./.rhosts" command="checkout"/>
>        	    
>     	<record name="cvsLog.txt" append="no" action="stop"
> loglevel="verbose"/>
>   </target>
> </project>
> 
> OUTPUT : (LOG FILE)
> -------------------
> 
> CVS:  duration 16754629 minutes 58 seconds
> 
> BUILD FAILED
> 
> D:\Program Files\IBM\VisualAge for
> Java\ide\tools\org-apache-tools-ant\cvsTask.xml:16:
> java.io.IOException: CreateProcess: cvs -d
> :psersver:pravin@star.objectorb.com:/usr/cvsroot checkout
> MDLProductNov15 error=267
> 	at org.apache.tools.ant.taskdefs.Cvs.execute(Cvs.java:221)
> 	at org.apache.tools.ant.Task.perform(Task.java:217)
> 	at org.apache.tools.ant.Target.execute(Target.java:184)
> 	at
> org.apache.tools.ant.Target.performTasks(Target.java:202)
> 	at
> org.apache.tools.ant.Project.executeTarget(Project.java:601)
> 	at
> org.apache.tools.ant.Project.executeTargets(Project.java:560)
> 	at org.apache.tools.ant.Main.runBuild(Main.java:454)
> 	at org.apache.tools.ant.Main.start(Main.java:153)
> 	at org.apache.tools.ant.Main.main(Main.java:176)
> --- Nested Exception ---
> java.io.IOException: CreateProcess: cvs -d
> :psersver:pravin@star.objectorb.com:/usr/cvsroot checkout
> MDLProductNov15 error=267
> 	at java.lang.Win32Process.create(Native Method)
> 	at java.lang.Win32Process.<init>(Win32Process.java:66)
> 	at java.lang.Runtime.execInternal(Native Method)
> 	at java.lang.Runtime.exec(Runtime.java:551)
> 	at java.lang.reflect.Method.invoke(Native Method)
> 	at
> org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.j
> ava:564)
> 	at
> org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:384)
> 	at org.apache.tools.ant.taskdefs.Cvs.execute(Cvs.java:216)
> 	at org.apache.tools.ant.Task.perform(Task.java:217)
> 	at org.apache.tools.ant.Target.execute(Target.java:184)
> 	at
> org.apache.tools.ant.Target.performTasks(Target.java:202)
> 	at
> org.apache.tools.ant.Project.executeTarget(Project.java:601)
> 	at
> org.apache.tools.ant.Project.executeTargets(Project.java:560)
> 	at org.apache.tools.ant.Main.runBuild(Main.java:454)
> 	at org.apache.tools.ant.Main.start(Main.java:153)
> 	at org.apache.tools.ant.Main.main(Main.java:176)
> 
> 
> Thank you
> daniel
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Find a job, post your resume.
> http://careers.yahoo.com
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

------------------------------------------------------------

The contents of this message are the views of the Author and
do not necessarily reflect the views of SUNCORP METWAY LTD.
ABN 66 010 831 722

http://www.suncorpmetway.com.au


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


Mime
View raw message