In Vaadin 7, can you programatically set productionMode as opposed to specifying it in the web.xml?
If not, what deployment techniques do you suggest whereby it’s in debug mode when developing locally, but set to production mode in the war file built for deployment to the server?
Thanks. I had seen that but it seemed specific to Vaadin 6. However, took another look and applied the same idea to Vaadin 7. VaadinServlet works a bit differently than Vaadin 6 ApplicationServlet, but not that differently. The new custom servlet to use is:
}
[/code]The “some condition” above is just pseudo code, to be filled in with whatever the condition happens to be. In my dev environment I use VM option -Dproject.debug.mode=true and then check
String prop = System.getProperty("project.debug.mode");
boolean b = (null != prop && prop.equals("true"));
In web.xml you have to point to this new servlet so instead of