Multiple root elements in system.xace

2 Messages Forum Options Options
Permalink
Berend de Boer
Multiple root elements in system.xace
Reply Threaded More
Print post
Permalink
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?

--
Cheers,

Berend de Boer


-------------------------------------------------------------------------
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
_______________________________________________
gobo-eiffel-develop mailing list
gobo-eiffel-develop@...
https://lists.sourceforge.net/lists/listinfo/gobo-eiffel-develop

smime.p7s (1K) Download Attachment
Eric Bezault
Re: Multiple root elements in system.xace
Reply Threaded More
Print post
Permalink
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:ericb@...
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
_______________________________________________
gobo-eiffel-develop mailing list
gobo-eiffel-develop@...
https://lists.sourceforge.net/lists/listinfo/gobo-eiffel-develop