2011/10/10 Ole Ersoy <ole.er...@gmail.com>: > I'm running the tomcat plugin configured as follows: > >>> <plugin> >>> <groupId>org.codehaus.mojo</groupId> >>> <artifactId>tomcat-maven-plugin</artifactId> >>> <configuration> >>> >>> <warSourceDirectory>${basedir}/src/main/webapp</warSourceDirectory> >>> </configuration> >>> </plugin> > > If I run the following line from a servlet the application is running: > logger.trace("The current root directory is: {} ", new > File("").getAbsolutePath()); > > I would expect to see "The current root directory is: > ${basedir}/src/main/webapp". However the result is: > "The current root directory is: ${basedir}". In other words it seems the > <warSourceDirectory> configuration has not taken effect.
you should read current root webapp directory in the servlet container. this means if you go with your browser to http://localhost:${port}/ you will see files from this directory. > > Thoughts? TIA, > - Ole > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Olivier Lamy Talend : http://talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org