Dietrich Streifert schrieb:
> Hello List,
>
> I would like to be able to remove debug messages like:
>
> this.debug(...)
> this.warn(...)
>
> in the build version of my application.
>
> Is this possible using variants?
>
> Somthing like:
>
> if (qx.core.Variant.isSet("qx.isSource", "yes")) {
>
> this.debug("I will be removed");
>
>
> }
>
>
> Thank you for your help.
>
> Best regards.
>
>
Hi Dietrich,
it is possible but you have to define your own variant for this. If you
define the variant "qx.isSource" and set it in your Makefile
APPLICATION_ADDITIONAL_SOURCE_OPTIONS = --use-variant qx.isSource:yes
APPLICATION_ADDITIONAL_BUILD_OPTIONS = --use-variant qx.isSource:no
The generator will remove the debug statements from the code in the
build version.
Best Fabian
--
Fabian Jakobs
JavaScript Framework Developer
1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe
Amtsgericht Montabaur HRB 6484
Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger,
Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel