Re: Returns error code on success?

"Nick Sabalausky" <[email protected]> Fri, 04 Feb 2005 00:10:14 -0700
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
I've looked into this some more and it seems the problem is in aap.bat. Specifically, the last line in the file ("set AAPARGS=") seems to be setting an exit code of 1. It looks like that's only needed for the Win9x-branch and, unless I'm overlooking something, it can be safely moved to just before "goto eof" thus fixing the problem on at least NT/XP-class machines. I'm not sure how to create a patch (is there a patch program in XP, or do I gotta grab one from GNU project?), so here's the changed aap.bat:

====================================
@echo off
rem Simplistic script to execute aap.

if NOT .%PYTHON%==. goto havepython
set PYTHON=python
:havepython
set AAPDIR=%~dp0

if .%OS%==.Windows_NT goto ntaction

rem collect the arguments in AAPARGS for Win95
set AAPARGS=
:loopstart
if .%1==. goto loopend
set AAPARGS=%AAPARGS% %1
shift
goto loopstart

:loopend
%PYTHON% "%AAPDIR%\Main.py" %AAPARGS%
set AAPARGS=
goto eof

:ntaction
rem for WinNT we can use %*
%PYTHON% "%AAPDIR%\Main.py" %*

:eof
====================================


> I have Visual Studio .NET 2003 set up to run my A-A-P recipe, and noticed that VS always thinks that the build failed even when it succeded. Could it be that A-A-P is mistakenly returning an error code?
> 
> (WinXP / A-A-P v1.074)
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
> Download a FREE copy at http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> A-A-P-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/a-a-p-develop
> 
> 




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl