[jetty-user] mvn:jetty ServletContext.getRealPath("") and ServletRequest.getRealPath("") return source folder instead of target folder?
Misha Koshelev <[email protected]>
| Newsgroups | gmane.comp.java.jetty.support |
|---|---|
| Message-ID | <1285558749.1761.0.camel@misha-d630> |
Dear All:
My apologies for bothering... this is related to
http://tickets.openmrs.org/browse/TRUNK-1760
It can be easily tested with the following commands:
mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes
-DarchetypeArtifactId=appfuse-light-struts-archetype
-DarchetypeVersion=2.1.0-M1 -DgroupId=com.mycompany
-DartifactId=myproject
cd myproject
patch -p0 < diff
cd myproject
mvn clean install -DskipTests && mvn jetty:run
The diff file can be found here:
http://old.nabble.com/file/p29815681/diff
Now, navigate to
http://localhost:8080/
in a browser and this will point to
!!! /home/misha/workspace/myproject/src/main/resources
Should this not, instead, point to?
./target/classes
or
./target/myproject-2.1.0-M1/WEB-INF/classes
Is it possible to modify this behavior?
Thank you so much
Yours
Misha Koshelev
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email