The directory the CVS executable lives in is probably not in your PATH.
Diane
--- Timothy Shadel <[EMAIL PROTECTED]> wrote:
> I've got a simple build.xml that contains only one target that tries to
> use CVS
>
> <project name="Basic" default="trycvs" basedir=".">
>
> <target name="trycvs">
> <cvs package="shadeltd/struts/basic/etc"
> dest="cvstest"
> />
> </target>
>
> </project>
>
> When executed on my Win2000 box with JDK 1.3 I get:
>
>
C:\DOCUME~1\shadeltd\DOCUME~1\Work\training\shadeltd\struts\basic\buildcvs.xml:8:
> java.io.IOException: CreateProcess: cvs checkout
> shadeltd/struts/basic/etc error=267
> --- Nested Exception ---
> java.io.IOException: CreateProcess: cvs checkout
> shadeltd/struts/basic/etc 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.java:509)
> at
> org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)
> at org.apache.tools.ant.taskdefs.Cvs.execute(Cvs.java:181)
> at org.apache.tools.ant.Target.execute(Target.java:153)
> at org.apache.tools.ant.Project.runTarget(Project.java:898)
> at org.apache.tools.ant.Project.executeTarget(Project.java:536)
> at org.apache.tools.ant.Project.executeTargets(Project.java:510)
> at org.apache.tools.ant.Main.runBuild(Main.java:421)
> at org.apache.tools.ant.Main.main(Main.java:149)
>
> Total time: 0 seconds
>
> But the following command works perfectly from the command-line in the
> same directory:
>
> cvs checkout shadeltd/struts/basic/etc
>
>
> I didn't see anything related in the mailing list archive. If you have
> any suggestions I'd appreciate it.
>
> Thanks,
>
> Tim Shadel
>
<HR>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4613.1700" name=GENERATOR></HEAD>
<BODY style="MARGIN-TOP: 2px; FONT: 8pt Tahoma; MARGIN-LEFT: 2px">
<DIV><FONT size=1>I've got a simple build.xml that contains only one
target that
tries to use CVS</FONT></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV><project name="Basic" default="trycvs" basedir="."></DIV>
<DIV> </DIV>
<DIV> <target name="trycvs"><BR> <cvs
package="shadeltd/struts/basic/etc"<BR>
dest="cvstest"<BR> /><BR> </target></DIV>
<DIV><BR></project><BR></DIV>
<DIV><FONT size=1>When executed on my Win2000 box with JDK 1.3 I
get:</FONT></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV><FONT
size=1>C:\DOCUME~1\shadeltd\DOCUME~1\Work\training\shadeltd\struts\basic\buildcvs.xml:8:
java.io.IOException: CreateProcess: cvs checkout shadeltd/struts/basic/etc
error=267<BR>--- Nested Exception ---<BR>java.io.IOException:
CreateProcess: cvs
checkout shadeltd/struts/basic/etc
error=267<BR> at
java.lang.Win32Process.create(Native
Method)<BR> at
java.lang.Win32Process.<init>(Win32Process.java:66)<BR>
at java.lang.Runtime.execInternal(Native
Method)<BR> at
java.lang.Runtime.exec(Runtime.java:551)<BR>
at java.lang.reflect.Method.invoke(Native
Method)<BR> at
org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:509)<BR>
at
org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)<BR>
at
org.apache.tools.ant.taskdefs.Cvs.execute(Cvs.java:181)<BR>
at
org.apache.tools.ant.Target.execute(Target.java:153)<BR>
at
org.apache.tools.ant.Project.runTarget(Project.java:898)<BR>
at
org.apache.tools.ant.Project.executeTarget(Project.java:536)<BR>
at
org.apache.tools.ant.Project.executeTargets(Project.java:510)<BR>
at
org.apache.tools.ant.Main.runBuild(Main.java:421)<BR>
at org.apache.tools.ant.Main.main(Main.java:149)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=1>Total time: 0 seconds</FONT></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV><FONT size=1>But the following command works perfectly from the
command-line in the same directory:</FONT></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV><FONT size=1>cvs checkout shadeltd/struts/basic/etc </FONT></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV><FONT size=1>I didn't see anything related in the mailing list
archive. If you have any suggestions I'd appreciate it.</FONT></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV><FONT size=1>Thanks,</FONT></DIV>
<DIV><FONT size=1></FONT> </DIV>
<DIV><FONT size=1>Tim Shadel</FONT></DIV></BODY></HTML>
=====
([EMAIL PROTECTED])
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/