Re: [Tomcat Plugin] WebAppSourceDirectory Configuration?

2011-10-11 Thread Olivier Lamy
Hello, Why not simply put your resources in src/main/resources and load it with Thread.currentThread().getContextClassLoader().getResourceAsStream( path in classloader ) ? 2011/10/11 Ole Ersoy ole.er...@gmail.com: Maybe if i explain what I'm trying to do, it will make more sense.  I have a

Re: [Tomcat Plugin] WebAppSourceDirectory Configuration?

2011-10-11 Thread Ole Ersoy
Hi, I believe this forces me to change the location of the web apps data files. Right now they are located under WEB-INF/data/somedata.xml. So if I use a ContextClassLoader then I have to change the location of the files when the webapp is deployed in production right? Thanks, - Ole On

Re: [Tomcat Plugin] WebAppSourceDirectory Configuration?

2011-10-11 Thread Olivier Lamy
servletContext.getResourceAsStream(WEB-INF/data/somedata.xml) ? 2011/10/11 Ole Ersoy ole.er...@gmail.com: Hi, I believe this forces me to change the location of the web apps data files.  Right now they are located under WEB-INF/data/somedata.xml.  So if I use a ContextClassLoader then I

Re: [Tomcat Plugin] WebAppSourceDirectory Configuration?

2011-10-11 Thread Ole Ersoy
Maybe - But I'm using DWR to invoke methods on my application layer. I'm not going directly through a servlet. So now my code needs to get the servletContext, which is not a big deal, but it means adding code that's only there for the reason of testing the application layer. I'd rather

Re: [Tomcat Plugin] WebAppSourceDirectory Configuration?

2011-10-10 Thread Olivier Lamy
2011/10/9 Ole Ersoy ole.er...@gmail.com: Hi, I tried the following:      plugin        groupIdorg.codehaus.mojo/groupId        artifactIdtomcat-maven-plugin/artifactId        configuration          warSourceDirectory${basedir}/src/main/webapp/warSourceDirectory        /configuration    

Re: [Tomcat Plugin] WebAppSourceDirectory Configuration?

2011-10-10 Thread Ole Ersoy
I'm running the tomcat plugin configured as follows: plugin groupIdorg.codehaus.mojo/groupId artifactIdtomcat-maven-plugin/artifactId configuration warSourceDirectory${basedir}/src/main/webapp/warSourceDirectory /configuration /plugin If I

Re: [Tomcat Plugin] WebAppSourceDirectory Configuration?

2011-10-10 Thread Olivier Lamy
2011/10/10 Ole Ersoy ole.er...@gmail.com: I'm running the tomcat plugin configured as follows:      plugin        groupIdorg.codehaus.mojo/groupId        artifactIdtomcat-maven-plugin/artifactId        configuration  warSourceDirectory${basedir}/src/main/webapp/warSourceDirectory        

Re: [Tomcat Plugin] WebAppSourceDirectory Configuration?

2011-10-10 Thread Ole Ersoy
Maybe if i explain what I'm trying to do, it will make more sense. I have a maven webapp project. I'm running it with: mvn tomcat:run When I run the webapp I would like to load resources from WEB-INF/resources/ When running a webapp in a standalone container WEB-INF is located in the

[Tomcat Plugin] WebAppSourceDirectory Configuration?

2011-10-09 Thread Ole Ersoy
Hi, Is it possible to configure the WebAppSourceDirectory in the Tomcat Plugin? I'm looking at the Jetty plugin documentation ( http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin ), and it seems it has a webAppSourceDirectory that is set to ${basedir}/src/main/webapp, which is the

Re: [Tomcat Plugin] WebAppSourceDirectory Configuration?

2011-10-09 Thread Olivier Lamy
Check warSourceDirectory parameter. http://mojo.codehaus.org/tomcat-maven-plugin/run-mojo.html#warSourceDirectory 2011/10/9 Ole Ersoy ole.er...@gmail.com: Hi, Is it possible to configure the WebAppSourceDirectory in the Tomcat Plugin?  I'm looking at the Jetty plugin documentation (

Re: [Tomcat Plugin] WebAppSourceDirectory Configuration?

2011-10-09 Thread Ole Ersoy
Cool - Thanks! - Ole On 10/09/2011 12:39 PM, Olivier Lamy wrote: Check warSourceDirectory parameter. http://mojo.codehaus.org/tomcat-maven-plugin/run-mojo.html#warSourceDirectory 2011/10/9 Ole Ersoyole.er...@gmail.com: Hi, Is it possible to configure the WebAppSourceDirectory in the Tomcat

Re: [Tomcat Plugin] WebAppSourceDirectory Configuration?

2011-10-09 Thread Ole Ersoy
Hi, I tried the following: plugin groupIdorg.codehaus.mojo/groupId artifactIdtomcat-maven-plugin/artifactId configuration warSourceDirectory${basedir}/src/main/webapp/warSourceDirectory /configuration /plugin However when I run