Douglas W Philips wrote:
> 
> In my lost hours of debugging this, I found info on the net which says
> that removing endlocal will fix this. In my toy little .bat file
> experiments, this proved to be true. Microsoft documentation on the
> command processor says that it will do an endlocal command at the end
> of .bat files automatically. All the setlocal/endlocal examples that I
> found on the web, few used endlocal as the last thing of the file.

Thank you for this information.

Note that in an interactive command prompt, endlocal does not prevent a
.bat file from properly setting %ERRORLEVEL%. Therefore what you
describe is far from being intuitive.



> Removing that might solve my problem, but I do not want to have to
> tell my group that they have to modify the ditac distribution. I
> suggest that you consider this change (after you have tested it to
> your satisfaction) for future releases.

Understood.



> The Java code says
> that the fo2docx.bat file returned an exit status of 2, but Java then
> returns an exit status code of 5.

That's normal. com.xmlmind.ditac.convert.Converter returns an exit code
 which indicates which step has failed. For example, exit code 3 means:
the preprocessing step has failed.



> 
> I hope you will be able to reproduce and verify our success with
> removing endlocal from fo2docx.bat (and the others) so that we can
> avoid this problem going forward with a 'as released' version of
> ditac!

Sure.




 
--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to