Go Back   ZeroC Forums > Patches

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 1 Week Ago
mefoster mefoster is offline
Registered User
 
Name: Mary Ellen Foster
Organization: Technical University of Munich
Project: JAST human-robot dialogue system
 
Join Date: Jun 2006
Posts: 66
[3.3b] Make slice2java Ant task robust against stderr

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
Attached Files
File Type: txt slice2javatask.patch.txt (819 Bytes, 20 views)
__________________
Mary Ellen Foster
Technical University of Munich
JAST human-robot dialogue system
Maintainer of Fedora Ice packages
Reply With Quote
  #2 (permalink)  
Old 1 Week Ago
mefoster mefoster is offline
Registered User
 
Name: Mary Ellen Foster
Organization: Technical University of Munich
Project: JAST human-robot dialogue system
 
Join Date: Jun 2006
Posts: 66
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
Attached Files
File Type: txt Ice-3.3-preprocessor-warning.patch.txt (375 Bytes, 12 views)
__________________
Mary Ellen Foster
Technical University of Munich
JAST human-robot dialogue system
Maintainer of Fedora Ice packages
Reply With Quote
  #3 (permalink)  
Old 1 Week Ago
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 927
Hi Mary Ellen,
Quote:
Originally Posted by mefoster View Post
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
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How does stderr/stdout redirection work? mefoster Help Center 2 4 Weeks Ago 04:45 AM
slice2java ant task not re-running blair Help Center 3 11-29-2007 04:37 PM
dumpdb output to STDERR? ctennis Comments 0 09-07-2007 03:07 PM
Patch to slice2java to make it generate Java 1.5 enums mefoster Patches 1 06-30-2006 02:32 PM
slice2java task source code xdm Help Center 1 12-15-2004 07:20 PM


All times are GMT -4. The time now is 10:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.