I wouldn't bother with a split install. Just serve the web server resources directly from tomcat/jetty. That's one of the main advantages of using a war in the first place - a much simpler deployment that just works. Everything third question on this list is from someone having a problem deploying their app.
Both tomcat and jetty will automatically serve static files placed in the "static" folder like the screenshot below: You can make WO generate the correct path by setting frameworksBaseURL or extending ERXServletApplication. For ANT here's the code to copy the files: <copy todir="${dest.dir}/${build.app.name}/static/${build.app.name }.woa/Contents/WebServerResources/"> <fileset dir="WebServerResources" includes="**" /> </copy> <copy todir="${dest.dir}/${build.app.name}/static/Frameworks/"> <fileset dir="${dest.dir}/${build.app.name}.woa/Contents/Frameworks/"> <include name="*.framework/WebServerResources/**"/> </fileset> </copy> On Tue Dec 30 2014 at 12:01:49 PM Faizel Dakri <list...@dakri.com> wrote: > How are maven folks doing split installs when packaging as a true war > for tomcat (or whatever container)? I've recently converted my app to a > true war, but the webserver resources are now bundled in the war and > there is no webserver-resources archive generated anymore (at least not > that I can find). > > I have many static resources that are inside embedded frameworks and > these are now packaged inside the framework jar files which are embedded > in my war file. Some of these static resources are css files that have > relative file urls in them, but these don't get get resolved when > serving static files via the container, which is why I'm wondering how > to build a split install package that bundles all static resources for > the app, as well as its frameworks. > > I recall there being support (i.e. Generating a tar archive with all > static resources) for this in the traditional ant-based builds and when > packaging as a woa in maven, but could not find a way when packaging as > war in maven. Am I missing something? > > Thanks for any advice or pointers. > > F > > -- > Faizel Dakri > list...@dakri.com > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/ > johnthuss%40gmail.com > > This email sent to johnth...@gmail.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com