Brill, What I did is exactly so we don't need to change the source for dev / prod environments. When we develop we use the jetty plugin so we set hard-coded the environment to DEVELOPMENT. The production is a WAR (actually an EAR) file. So the web.xml has configuration set to deployment.
That way we don't need to worry. Igor: got your point ... Eyal Golan [email protected] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save a tree. Please don't print this e-mail unless it's really necessary On Tue, Feb 24, 2009 at 7:03 PM, Brill Pappin <[email protected]> wrote: > Already answered the static field thing... but just curious why you think > its better to have modify your source tree just to switch from dev to prod? > Wouldn't your dev/qa/deploy cycle be simpler if you didn't have to modify > the source? > > - Brill pappin > > > > On 24-Feb-09, at 10:49 AM, Eyal Golan wrote: > > Thanks Marcelo and James. >> >> I still prefer the solution we have come to: >> In the web.xml put deployment and in the Jetty plugin (StartWebServer) put >> the development. >> >> My question was why Application.java doesn't have 'wicket.configuration' >> as >> a static field. >> Wouldn't it be nice? >> >> Eyal Golan >> [email protected] >> >> Visit: http://jvdrums.sourceforge.net/ >> LinkedIn: http://www.linkedin.com/in/egolan74 >> >> P Save a tree. Please don't print this e-mail unless it's really >> necessary >> >> >> On Tue, Feb 24, 2009 at 3:08 PM, Marcelo Morales <marcelomorales.name@ >> gmail.com> wrote: >> >> I am using tomcat. I just append -Dwicket.configuration=development on >>> the start script. Perhaps you can append it to the jetty start as >>> well. >>> >>> On Tue, Feb 24, 2009 at 8:35 AM, Eyal Golan <[email protected]> wrote: >>> >>>> Hi, >>>> It's been a long time since I've written in this mailing list. >>>> >>>> Here's my question: >>>> I was looking for a way to set the mode to DEVELOPMENT in the Jetty >>>> >>> starter >>> >>>> while setting DEPLOYMENT in the web.xml. >>>> I encountered the following thread: >>>> >>>> >>> http://www.nabble.com/dummy-question%2C-how-to-set-wicket-in-Deloyment-mode--td13364304.html#a13364498 >>> >>>> >>>> In there there is this line: >>>> System.setProperty("wicket.configuration", "development"); >>>> >>>> I am using Wicket 1.3.4 >>>> Wicket Application class has a static filed called CONFIGURATION, which >>>> >>> is >>> >>>> without the 'wicket' part. >>>> >>>> Why doesn't it have a static 'wicket.configuration' ? >>>> Wouldn't it be better? >>>> >>>> Thanks >>>> >>>> Eyal Golan >>>> [email protected] >>>> >>>> Visit: http://jvdrums.sourceforge.net/ >>>> LinkedIn: http://www.linkedin.com/in/egolan74 >>>> >>>> P Save a tree. Please don't print this e-mail unless it's really >>>> >>> necessary >>> >>>> >>>> >>> >>> >>> -- >>> Marcelo Morales >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >>> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
