You can specify a configuration file when jetty starts.  Take a look at:
http://wiki.apache.org/solr/SolrJetty

then you can start jetty with:
java -jar start.jar yourjettyconfig.xml


On 1/8/07, Brian Whitman <[EMAIL PROTECTED]> wrote:
I would like to specify the solr dataDir on launch of jetty via java -
jar start.jar instead of editing the solrconfig.xml before launching.

I've tried java -Dsolr.dataDir=/x/y/z -jar start.jar but it seems to
have no effect -- it starts with the solrconfig.xml default.

Use case is that I would like to deploy solr to other users with the
data dir going in their home directories.. setting the dataDir in
solrconfig.xml to ~/solrdata does not work (the ~ does not get
expanded on this OSX system.)





Reply via email to