ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Taylor <donald_l_taylor...@yahoo.com>
Subject Re: CreateProcess error while executing exec task
Date Fri, 07 Sep 2001 11:49:29 GMT
You can't execute a batch file. You have to execute cmd.exe and specify
the batch file you want to run as an argument to cmd.exe.

-- Don

--- geeta eknath dhane <gdhane@rediffmail.com> wrote:
> 
> 
> Hi,
> 
> IOException is raised when exec task of ant is runned
> Could anybody tell me the reason behind it.
> It's urgent .Pls tell whether there are any settings of env variables
> tobe done
> 
> I have done all the required settings like JAVA_HOME,ANT_HOME
> 
> Thank's 
> Geeta
> 
> The Exception is as follow's
> 
> Execute failed: java.io.IOException: CreateProcess: wscp.bat -f
> cashin.tcl -B CTSRV1 CashinApp CashinAppContainer c:\cashin\app\lib\
> DeployedCtTskEjb.jar c:\cashin\app\scripts\Tsklist.txt  error=2
> --- Nested Exception ---
> java.io.IOException: CreateProcess: wscp.bat -f cashin.tcl -B CTSRV1
> CashinApp CashinAppContainer c:\cashin\app\lib\ DeployedCtTskEjb.jar
> c:\cashin\app\scripts\Tsklist.txt  error=2
> 	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:279)
> 	at
>
org.apache.tools.ant.taskdefs.Execute$CommandLauncher.exec(Execute.java:435)
> 	at
>
org.apache.tools.ant.taskdefs.Execute$CommandLauncherProxy.exec(Execute.java:550)
> 	at
>
org.apache.tools.ant.taskdefs.Execute$WinNTCommandLauncher.exec(Execute.java:575)
> 	at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:329)
> 	at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:228)
> 	at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:162)
> 	at org.apache.tools.ant.Target.execute(Target.java(Compiled Code))
> 	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.taskdefs.Ant.execute(Ant.java:213)
> 	at
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
> 	at org.apache.tools.ant.Target.execute(Target.java(Compiled Code))
> 	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
> 
>  
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com

Mime
View raw message