Home Patches

[3.3b] Make slice2java Ant task robust against stderr

mefostermefoster Member Mary Ellen FosterOrganization: Heriot-Watt University, EdinburghProject: ECHOES learning environment ✭✭✭
I discovered today that, if mcpp prints any messages to stderr while it's processing a file, the slice2java Ant task tries to parse those as dependencies and dies. The attached (tiny) patch fixes this issue.

MEF

Comments

  • mefostermefoster Member Mary Ellen FosterOrganization: Heriot-Watt University, EdinburghProject: ECHOES learning environment ✭✭✭
    It might also be worth telling mcpp not to print any warning messages when it's called from the Slice preprocessor. At the moment, it warns at me every time I have no final EOL character or a Windows-formatted (CRLF) file on Linux -- neither of these things caused any warnings on previous versions of Ice.

    But maybe you want to keep the warnings in there, so this is only a suggestion. :)

    MEF
  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi Mary Ellen,
    mefoster wrote: »
    I discovered today that, if mcpp prints any messages to stderr while it's processing a file, the slice2java Ant task tries to parse those as dependencies and dies. The attached (tiny) patch fixes this issue.
    Thanks for the patch, we'll include it in the 3.3 release.

    Take care,
    Mark
Sign In or Register to comment.