ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Murdoch" <adammurd...@yahoo.com>
Subject RE: cvs command from Windows NT
Date Tue, 10 Oct 2000 04:06:10 GMT

Hi,

The cvs task isn't built-in as such - it doesn't do the actual work inside
ant, it is simply a wrapper that executes the 'cvs' command.  If you don't
have the 'cvs' command in your PATH environment variable, this task won't
work.  And the error message if 'cvs' can't be found is the rather cryptic
'IOException ...' that you're seeing.


Adam

> -----Original Message-----
> From: Chris Gramly [mailto:cgramly@pacbell.net]
> Sent: Tuesday, 10 October 2000 9:09 AM
> To: ant-user@jakarta.apache.org
> Subject: cvs command from Windows NT
>
>
> I am trying to do a checkout of my application code from my WinNT laptop
> using the built-in ant 'cvs' task.  The cvs repository resides on a unix
> machine connected to the same network as my laptop.  I was successful in
> doing this from one unix machine to another using the following:
>
> <property name="cvsroot"
> value=":pserver:weblogic@10.0.0.10:/usr/local/cvsroot" />
> <target name="cvs_checkout" depends="stop_weblogic">
>      <cvs cvsRoot="${cvsroot}"
>           package="${module.name}"
>           dest="${src.home}" />
> </target>
>
> When I try this from my laptop I receive the following error:
>
> oh_build.xml:214: java.io.IOException: CreateProcess: cvs -d
> :pserver:cgramly@10.0.0.10:/usr/local/cvsroot checkout oh_website  error=2
> java.io.IOException: CreateProcess: cvs -d
> :pserver:cgramly@10.0.0.10:/usr/local/cvsroot checkout oh_website  error=2
>         at java.lang.Win32Process.create(Native Method)
>         at java.lang.Win32Process.<init>(Win32Process.java:64)
>         at java.lang.Runtime.execInternal(Native Method)
>         at java.lang.Runtime.exec(Runtime.java:272)
>         at org.apache.tools.ant.taskdefs.Execute.exec(Execute.java:240)
>         at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:218)
>         at org.apache.tools.ant.taskdefs.Cvs.execute(Cvs.java:117)
>         at org.apache.tools.ant.Target.execute(Target.java, Compiled Code)
>         at org.apache.tools.ant.Project.runTarget(Project.java:797)
>         at
> org.apache.tools.ant.Project.executeTarget(Project.java, Compiled
> Code)
>         at org.apache.tools.ant.Project.executeTargets(Project.java,
> Compiled Code)
>         at org.apache.tools.ant.Main.runBuild(Main.java, Compiled Code)
>         at org.apache.tools.ant.Main.main(Main.java:124)
>
> Any ideas/suggestions would be appreciated.
>
> Thanks,
>
> -Chris


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Mime
View raw message