You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Chris Gramly <cg...@pacbell.net> on 2000/10/10 01:09:14 UTC

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


RE: cvs command from Windows NT

Posted by Adam Murdoch <ad...@yahoo.com>.
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


Problem with nightly binarys

Posted by Mike Pedersen <mi...@oracle.com>.
I've noticed a problem with the last several nightly binarys.  It appears 
that for some reason ant V1.1 is being build instead of the latest code 
from cvs.  With all builds starting with I think October 4th "ant -version" 
reports the version as 1.1 built on the current date.  Have the current 
binarys been moved to a different location?  I am getting my downloads 
from: http://jakarta.apache.org/builds/ant/nightly/
Thanks much