Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 78573 invoked by uid 500); 23 Aug 2001 19:52:16 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 78564 invoked from network); 23 Aug 2001 19:52:16 -0000 Message-ID: <20010823195219.1977.qmail@web13404.mail.yahoo.com> Date: Thu, 23 Aug 2001 12:52:19 -0700 (PDT) From: Diane Holt Subject: Re: Can't create process: CVS To: ant-user@jakarta.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N The directory the CVS executable lives in is probably not in your PATH. Diane --- Timothy Shadel wrote: > I've got a simple build.xml that contains only one target that tries to > use CVS > > > > > dest="cvstest" > /> > > > > > 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.(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 >
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
===== (holtdl@yahoo.com) __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/