| Summary: | Allow to change location of temporary directory for rwt-resources | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Dominik Stadler <dominik.stadler> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Dominik Stadler
How do you deploy your application: as a standalone RWT application? or as a an OSGi/Equinox app embedded into a WAR file? We start an instance of Tomcat Web Container as embedded application and have RWT as webapp running inside there, so no OSGi. We have a web.xml where we define "org.eclipse.rwt.internal.engine.RWTDelegate" as delegate and some listeners and context-params to configure the RWT application. In principle, the root-path used by ResourceManagerImpl.getDiskLocation() could be made configurable, however I doubt that this will solve your problem. The files below 'rwt-resources' are those to be delivered to the client (e.g. images). IIRC, in a standalone scenario the 'default servlet' of the servlet engine delivers resource requests from the root of the web app. If you are running an embedded tomcat, you should be able to specify where web-apps are placed in the file system and re-locate them in a writeable location. We are running Tomcat embedded for integration tests and are creating temp directories for the web-apps. The code can be found in the RAP source code repository [1] under cvsroot/rt/org.eclipse.rap/runtime.rwt.test/org.eclipse.rap.rwt.cluster.testfixture (see class TomcatEngine) Please let me know if that helps. [1] http://eclipse.org/rap/source Yes, that is the workaround that I was planning to try if there is no way to configure this in RWT/Tomcat directly. So I probably have to copy over the static files of the webapp to a temp location and choose that as webapp folder for Tomcat. |