ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Shadel <shade...@mtc.byu.edu>
Subject Re: Can't create process: CVS
Date Thu, 23 Aug 2001 20:27:14 GMT
No, it's there.  I'm not sure what it is.  Like I said, I execute the cvs command perfectly
from the command prompt.  Not only that but I double-checked the path, and it's there.  No
change, though, in what ant does...

Tim

>>> Diane Holt <holtdl@yahoo.com> 08/23/01 01:52PM >>>
The directory the CVS executable lives in is probably not in your PATH.

Diane

--- Timothy Shadel <shadeltd@mtc.byu.edu> 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>&nbsp;</DIV>
<DIV>&lt;project name="Basic" default="trycvs" basedir="."&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&lt;target name="trycvs"&gt;<BR>&nbsp;&nbsp;&lt;cvs

package="shadeltd/struts/basic/etc"<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
dest="cvstest"<BR>&nbsp;&nbsp;/&gt;<BR>&nbsp;&lt;/target&gt;</DIV>
<DIV><BR>&lt;/project&gt;<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>&nbsp;</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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
at 
java.lang.Win32Process.create(Native 
Method)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at

java.lang.Win32Process.&lt;init&gt;(Win32Process.java:66)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

at java.lang.Runtime.execInternal(Native 
Method)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at

java.lang.Runtime.exec(Runtime.java:551)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

at java.lang.reflect.Method.invoke(Native 
Method)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at

org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:509)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

at 
org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

at 
org.apache.tools.ant.taskdefs.Cvs.execute(Cvs.java:181)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

at 
org.apache.tools.ant.Target.execute(Target.java:153)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

at 
org.apache.tools.ant.Project.runTarget(Project.java:898)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

at 
org.apache.tools.ant.Project.executeTarget(Project.java:536)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

at 
org.apache.tools.ant.Project.executeTargets(Project.java:510)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

at 
org.apache.tools.ant.Main.runBuild(Main.java:421)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

at org.apache.tools.ant.Main.main(Main.java:149)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=1>Total time: 0 seconds</FONT></DIV>
<DIV><FONT size=1></FONT>&nbsp;</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>&nbsp;</DIV>
<DIV><FONT size=1>cvs checkout shadeltd/struts/basic/etc </FONT></DIV>
<DIV><FONT size=1></FONT>&nbsp;</DIV>
<DIV><FONT size=1></FONT>&nbsp;</DIV>
<DIV><FONT size=1>I didn't see anything related in the mailing list 
archive.&nbsp; If you have any suggestions I'd appreciate it.</FONT></DIV>
<DIV><FONT size=1></FONT>&nbsp;</DIV>
<DIV><FONT size=1>Thanks,</FONT></DIV>
<DIV><FONT size=1></FONT>&nbsp;</DIV>
<DIV><FONT size=1>Tim Shadel</FONT></DIV></BODY></HTML>



=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Mime
View raw message