on 2005 Jul 27 7:33 AM
Hi,
I want to enable Asserts in NWDI (http://java.sun.com/j2se/1.4.2/docs/guide/lang/assert.html#enable-disable). How is that possible within NWDI when developing and deploying Java WD-Applications and using DTR?
Thank you and best regards,
Daniel
Assert is only possible in Java projects. I think the reason for this is that WebDynpro will be able to generate .NET code in the future and maybe even other languages. So WebDynpro is not java only. Assert is a typical java feature.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To enable (make active) assert statements, you must set a flag to the compiler.
Go to Run -> Run... -> Arguments, and in the box labeled VM arguments:, enter either -enableassertions or just -ea.
Accept the changes and close the dialog.
If you need any additional help, please let me know.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I apologize but I have a further question: I am working with Java WebDynpro and start the application via WD-App-Start. How can I enter those parameters for the WD Application? In Run->Run->WDApplication there is no possibility to enter VM arguments.
Am I wrong or is there no possibility to activate assert statements for WD Java applications?
Furthermore, if that is possible, what do we have to do in DTR for central builds and deployments to activate asserts, too?
Thank you and best regards,
Daniel
User | Count |
---|---|
69 | |
13 | |
11 | |
10 | |
9 | |
9 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.