Re: Multiple root elements in system.xace

Eric Bezault <[email protected]>
Newsgroups gmane.comp.lang.eiffel.gobo.devel
Message-ID <[email protected]>
Berend de Boer wrote:
> Hello Guys,
> 
> It would be convenient for me if system.xace would allow multiple root
> elements. 
> 
> The use case is this: print the exception message via a rescue clause on
> the application's root class when compiled in boost mode; but still give
> the full stack trace when compiled in debug mode.
> 
> However, SmartEiffel doesn't give a stack trace when you put in a rescue
> clause, so you can only have a rescue clause on the creation routine
> that is used in boost mode, and not in the creation one for debug mode.
> 
> So ideally system.xace would allow me to see:
> 
>   <root class="BP_EMAIL_TASK" creation="make_debug" if="${DEBUG}"/>
>   <root class="BP_EMAIL_TASK" creation="make_rescue_debug" unless="${DEBUG}"/>
> 
> Is that easy to add?

I just tried it and it seems to already work the way
you suggested above.

-- 
Eric Bezault
mailto:[email protected]
http://www.gobosoft.com

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.