ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: Result: 1
Date Tue, 23 Aug 2005 09:23:40 GMT
Dewey, John wrote:
> Hmm OK. I guess I'm a little confused now. I thought that the return
> codes were determined by the operating system as the ant manual
> http://ant.apache.org/manual/CoreTasks/exec.html said that "error code 2
> means 'no such program'. Is this meaning of error code 2 simply a
> convention that programs follow? Thus a more precise saying would be
> that error code 2 means 'no such program' for most programs.

those are "DOS error codes"...search for that phrase online and you will 
find things like

http://www.computerhope.com/xdoseror.htm

> 
> Given the error message I'm not sure which program is returning the
> error code since it is complaining that it doesn't recognize / can't run
> the executable I'm trying to execute.
> 
> What I'm trying to do is call a bat file from ant.
> <exec dir="${src.dir}" executable="run.bat" os="Windows 2000,Windows
> XP"/>
> The full error message is 
>      [exec] 'run.bat' is not recognized as an internal or external
> command,
>      [exec] operable program or batch file.
>      [exec] Result: 1
> 
> I am sure that run.bat is a bat file. Does what I want it to from the
> command line. It doesn't matter what its contents are it gives the same
> error when all I had is 1 line:
> java proj.client.Client
> 
> I know I could run the above command in a Java task, it is trivial
> because I was trying to eliminate the contents of the bat file as the
> troublemaker.
> 
> -Jon
> 


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


Mime
View raw message