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
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
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
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
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
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
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
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
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
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 (
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
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
12 matches
Mail list logo