ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Barry Jia <b...@brightspark.com>
Subject RE: cvs at ant
Date Wed, 06 Mar 2002 22:46:13 GMT
cvs.exe is in my path, and the debug info
" cvs -d :pserver:bjia@tira-src:/var/local/tira-cvs checkout code-injection"
generate exception,
but if I run this command in same terminal, it works ! it can check out
everything, I do not know which directory is invalid now if Error code 267
means invalid directory.
in my build file like below, how to set up cvx.exe absolute path for cvs.exe
?
 <target name="checkout">
      <cvs cvsRoot="${CVSROOT}"
           package="code-injection"
           dest="code-injection"
           passfile="${passfile}"
       />
   </target>

______________________________________________	
 	Barry Jia
Brightspark
Tel:416-488-1999 ext.306
Email: bjia@brightspark.com <mailto:bjia@brightspark.com>  

 



-----Original Message-----
From: Paul Cody [mailto:paul.cody@lucida.com]
Sent: Wednesday, March 06, 2002 5:34 PM
To: 'Ant Users List'
Subject: RE: cvs at ant


Always search CreateProcess errors on Google.  Error 267 appears to be 'The
directory name is invalid'.  Try again with the absolute path to your cvs
executable and report back.

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q186549

Paul

> -----Original Message-----
> From: Barry Jia [mailto:bjia@brightspark.com]
> Sent: Wednesday, March 06, 2002 2:23 PM
> To: 'Ant Users List'
> Subject: RE: cvs at ant
> 
> 
> parsing buildfile D:\t4\scripts\masterbuild.xml with URI =
> file:D:/t4/scripts/masterbuild.xml
> Setting ro project property: ant.project.name -> Tira Project
> Adding reference: Tira Project -> org.apache.tools.ant.Project@29ae05
> Setting project property: basedir -> D:\t4\scripts
> Project base dir set to: D:\t4\scripts
>    +Task: property
> Setting project property: CVSROOT ->
> :pserver:bjia@tira-src:/var/local/tira-cvs
>    +Task: property
> Setting project property: passfile -> D:/CVSClient/.cvspass
>  +Target: checkout
>    +Task: cvs
> Build sequence for target `checkout' is [checkout]
> Complete build sequence is [checkout]
> 
> checkout:
> Execute:Java13CommandLauncher: cvs -d
> :pserver:bjia@tira-src:/var/local/tira-cvs checkout code-injection
> 
> BUILD FAILED
> this is the debug info, I have no idea where the problem is from ?
> Thanks!
> D:\t4\scripts\masterbuild.xml:12: java.io.IOException: 
> CreateProcess: cvs -d
> :pserver:bjia@tira-src:/var/local/tira-cvs checkout 
> code-injection error=267
>         at org.apache.tools.ant.taskdefs.Cvs.execute(Cvs.java:221)
>         at org.apache.tools.ant.Task.perform(Task.java:217)
>         at org.apache.tools.ant.Target.execute(Target.java:184)
>         at org.apache.tools.ant.Target.performTasks(Target.java:202)
>         at 
> org.apache.tools.ant.Project.executeTarget(Project.java:601)
>         at 
> org.apache.tools.ant.Project.executeTargets(Project.java:560)
>         at org.apache.tools.ant.Main.runBuild(Main.java:454)
>         at org.apache.tools.ant.Main.start(Main.java:153)
>         at org.apache.tools.ant.Main.main(Main.java:176)
> --- Nested Exception ---
> java.io.IOException: CreateProcess: cvs -d
> :pserver:bjia@tira-src:/var/local/tira-cvs checkout 
> code-injection 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.ex
> ec(Execute.jav
> a:564)
>         at 
> org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:384)
>         at org.apache.tools.ant.taskdefs.Cvs.execute(Cvs.java:216)
>         at org.apache.tools.ant.Task.perform(Task.java:217)
>         at org.apache.tools.ant.Target.execute(Target.java:184)
>         at org.apache.tools.ant.Target.performTasks(Target.java:202)
>         at 
> org.apache.tools.ant.Project.executeTarget(Project.java:601)
>         at 
> org.apache.tools.ant.Project.executeTargets(Project.java:560)
>         at org.apache.tools.ant.Main.runBuild(Main.java:454)
>         at org.apache.tools.ant.Main.start(Main.java:153)
>         at org.apache.tools.ant.Main.main(Main.java:176)
> 
> Total time: 4 seconds
> 
> ______________________________________________	
>  	Barry Jia
> Brightspark
> Tel:416-488-1999 ext.306
> Email: bjia@brightspark.com <mailto:bjia@brightspark.com>  
> 
>  
> 
> 
> 
> -----Original Message-----
> From: Jesse Stockall [mailto:jesse@cryptocard.com]
> Sent: Wednesday, March 06, 2002 5:19 PM
> To: Ant Users List
> Subject: RE: cvs at ant
> 
> 
> On Wed, 2002-03-06 at 17:17, Barry Jia wrote:
> > cvs is in my path. I run ant script and manualy run the cvs 
> check out
> > command in same dos terminal, one does work, and one work.
> 
> What does ant -debug show? Does it give the reason for the 
> IOException?
> 
> -- 
>  Jesse Stockall			|	Tel: 1+ 
> 613.599.2441 ext. 243
>  CRYPTOCard Corporation		|	Fax: 1+ 
> 613.599.2442	 	
>  Suite 304, 300 March Rd.	|	email: jesse@cryptocard.com
>  Ottawa, ON, Canada K2K 2E2	|	web: www.cryptocard.com 
> ---------------------------------------------------------------------
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message