-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Aristedes,
On 8/24/2011 10:36 AM, Aristedes Maniatis wrote: > On 25/08/11 12:15 AM, Christopher Schultz wrote: > >> So, if you could do this with code it would be: >> >> getServletContext().getRealPath("/WEB-INF/classes/solr") >> >> Right? > > Yes. Okay... glad I understand the goal :) >> There isn't any system property for this kind of thing (since >> system properties are JVM-wide, and not specific to any >> particular webapp) so it would have to be, as you say, some kind >> of "magic" variable that you could use. > > Are all properties JVM-wide? All system properties (retrieved using System.getProperty()) are JVM-global. > If I define a property in: > > webapps/someapp##1234/META-INF/context.xml Those aren't system properties -- they /will/ be local to the webapp. >> I don't believe such a variable exists. Since Solr is servlet >> context-aware application (i.e. it *is* webapp), is it possible >> to give it a path relative to the webapp itself? You might want >> to ask the Solr folks about this. > > Sure. I can try there next, but any such solution is going to > involve changing Solr code. Maybe not. Most webapp configurations assume that paths are relative to the webapp itself. >> Another option, which I think is a better option, would be to >> locate solr/home outside of your deployment directory. > > That is an option, but a very awkward one since then I have an > application separated from the configuration which is an integral > part of its functionality. What goes in solr/home, anyway? I figured that the indexes go in there, not just a configuration file or two. > This isn't some JDBC connection which differs in every deployment, > but the configuration of exactly how the application works. So > being able to keep it in our SCM with the code and deploy together > is essential. Fair enough. I think the Solr list is the place to go. Definitely let us know what the answer is. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk5VDh4ACgkQ9CaO5/Lv0PAskQCfRNrit7Aqjj4c5jn9fpjtb4sl QZMAoJO53b00b9jKbPWOPUHN9T736dNn =XFCc -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org