On Mon, Aug 17, 2015 at 10:07:46AM +0000, TAYLOR Robin wrote: > Hi Terry, > > > That's really useful, thanks. The main problem for me is that configuration > is so entwined with both the Maven build and the Ant installation, it makes > it difficult to find a process that avoids having to do a Maven build on a > live server, and hack various bits of configuration specific to that server. > Sigh [😊]
The build doesn't actually need any of the configuration. It's just that you have to fill out build.properties anyway or it complains, because it wants to customize various config. files for you. Installation needs dspace.dir. Before I had to do build.properties to make the build succeed, what I would do is just tell ant where to find the dspace.cfg it was to use. (-Dconfig=path/to/dspace.cfg) (I do build on the target host, because I've found no strong reason not to, but every site's needs are different.) If you've found other configuration settings that are used by Ant, maybe we can fix that. I keep a number of different configurations on file for use with various development and test deployments. At runtime, DSpace starts from a customized web.xml, but I'm not sure why we bother: the Context parameters (the customized bits) can be overridden in the Context descriptor if you're using Tomcat as the container, and I believe that the other popular containers have similar facilities. It seems to me that the ideal, in Servlet applications, is that the webapp. should be unaware of anything outside of its own existence until the container injects the specifics of this instance's deployment. We could make better use of that. -- Mark H. Wood Lead Technology Analyst University Library Indiana University - Purdue University Indianapolis 755 W. Michigan Street Indianapolis, IN 46202 317-274-0749 www.ulib.iupui.edu
signature.asc
Description: Digital signature
------------------------------------------------------------------------------
_______________________________________________ Dspace-devel mailing list Dspace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dspace-devel