<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Chris,<div class="">See if o.c.j.bridge.BookInstaller suits your needs for building indexes. The bridge package was written to provide command line interface to basic things and serve as examples of how to write such in JSword. You’ll have to create your own shell script for it. For an example of such see:&nbsp;<a href="http://www.crosswire.org/bibledesktop/stable/BibleDesktop.sh" class="">http://www.crosswire.org/bibledesktop/stable/BibleDesktop.sh</a></div><div class=""><br class=""></div><div class="">Note that indexes may need to be rebuilt if the program’s version of Java is updated wrt to Unicode or if Lucene is upgraded.</div><div class=""><br class=""></div><div class="">-Dsword.home and -Djsword.home should work just fine, but they have to be set properly. Here is how JSword should resolve:</div><div class="">sword.home is the location for installing modules.</div><div class="">jsword.home is the location for storing JSword specific values.</div><div class=""><br class=""></div><div class="">If these are not set JSword will do it’s best to find JSword’s home based on the architecture of the machine. We’ll refer to this as JSWORD_HOME regardless of how it is set.</div><div class=""><br class=""></div><div class="">These two properties are used to set values in o.c.j.book.sword.SwordBookPath. It builds an array of module locations containing current directory, SWORD_HOME (if set), other standard locations, and finally user specified locations (via setAugmentPath). Of those, they need to have the expected mods.d and modules folder to be included. The default install directory is the first writeable among those. There’s additional logic for a new install that doesn’t have any location with mods.d and modules.</div><div class=""><br class=""></div><div class="">The current working directory ‘.’ is supposed to be the location of the executable, but typically it is some odd place which doesn’t have mods.d and modules. So while it is first, it typically doesn’t have an impact.</div><div class=""><br class=""></div><div class="">The upshot is that sword.home when it points to a folder having mods.d and modules will be the first location for looking for modules.</div><div class=""><br class=""></div><div class="">JSWORD_HOME is actually based upon CWProject.setHome. The first argument is expected to be jsword.home, but it doesn’t have to be. It can be step.home or any other value. If that system property exists and points to a writeable folder, it will be used as JSWORD_HOME.</div><div class=""><br class=""></div><div class="">Under JSWORD_HOME, the lucene folder will hold the indexes for the module. It doesn’t have to pre-exist indexing, being created as needed.</div><div class=""><br class=""></div><div class="">Hope this helps,</div><div class="">DM</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 27, 2017, at 5:41 PM, Martin Denham &lt;<a href="mailto:mjdenham@gmail.com" class="">mjdenham@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">And Bible's indexes are here:&nbsp;<a href="http://crosswire.org/and-bible/indices/v1/" class="">http://crosswire.org/and-bible/indices/v1/</a><div class=""><br class=""></div><div class="">They are generated using JSword on JDK 7.</div><div class=""><br class=""></div><div class="">Martin</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On 27 March 2017 at 21:58, Chris Burrell <span dir="ltr" class="">&lt;<a href="mailto:chris@burrell.me.uk" target="_blank" class="">chris@burrell.me.uk</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Apologies for the many emails. I don't think the -Dsword.home -Djsword.home variables will work sadly. This looks first at ~/.sword and then after that adds in the the system property values. So it seems it looks at both directories, rather than just the one?<div class=""><br class=""></div><div class="">Any ideas on how to only look at a specific directory?</div><span class="HOEnZb"><font color="#888888" class=""><div class="">Chris</div><div class=""><br class=""></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On 27 March 2017 at 21:12, Chris Burrell <span dir="ltr" class="">&lt;<a href="mailto:chris@burrell.me.uk" target="_blank" class="">chris@burrell.me.uk</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">-sorry sent too soon.&nbsp;<div class=""><br class=""></div><div class="">... though presumably I will have to unzip the files.</div><div class=""><br class=""></div><div class="">If someone knows whether the Crosswire server stores the indexes, please let me know.<span class="m_-5092916548234749066HOEnZb"><font color="#888888" class=""><br class="">Chris</font></span></div><div class=""><br class=""></div></div><div class="m_-5092916548234749066HOEnZb"><div class="m_-5092916548234749066h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On 27 March 2017 at 21:11, Chris Burrell <span dir="ltr" class="">&lt;<a href="mailto:chris@burrell.me.uk" target="_blank" class="">chris@burrell.me.uk</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class="">Hi</div><div class=""><br class=""></div>In fact, forget the first part, I seem to have that, though I have to install the modules in the .sword folder for this to work. I just found this:&nbsp;<span style="color:rgb(0,128,0);font-weight:bold;font-family:&quot;courier new&quot;;font-size:7.2pt" class="">sword.home which should hopefully mean I can index stuff without installing the modules, though presumably I will have to rebul</span><div class=""><br class=""></div><div class="">Thanks</div><span class="m_-5092916548234749066m_-316517100158249735HOEnZb"><font color="#888888" class=""><div class="">Chris</div><div class=""><br class=""></div></font></span></div><div class="m_-5092916548234749066m_-316517100158249735HOEnZb"><div class="m_-5092916548234749066m_-316517100158249735h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On 27 March 2017 at 21:01, Chris Burrell <span dir="ltr" class="">&lt;<a href="mailto:chris@burrell.me.uk" target="_blank" class="">chris@burrell.me.uk</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Hi all<div class=""><br class=""></div><div class="">Does anyone have a packaged 'indexer' that can be run from the command line. I'm assuming it's not too hard to build, though from recollection this is an async process, etc and so if someone just had some code they have already as a packager that would be great.</div><div class=""><br class=""></div><div class="">Also, do you know if the crosswire server stores some JSword indexes for the modules they host? If so, that could save a bit of time...</div><div class=""><br class=""></div><div class="">Let me know. Thanks</div><span class="m_-5092916548234749066m_-316517100158249735m_8205762948248076917HOEnZb"><font color="#888888" class=""><div class="">Chris</div><div class=""><br class=""></div></font></span></div>
</blockquote></div><br class=""></div>
</div></div></blockquote></div><br class=""></div>
</div></div></blockquote></div><br class=""></div>
</div></div><br class="">______________________________<wbr class="">_________________<br class="">
jsword-devel mailing list<br class="">
<a href="mailto:jsword-devel@crosswire.org" class="">jsword-devel@crosswire.org</a><br class="">
<a href="http://www.crosswire.org/mailman/listinfo/jsword-devel" rel="noreferrer" target="_blank" class="">http://www.crosswire.org/<wbr class="">mailman/listinfo/jsword-devel</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">jsword-devel mailing list<br class=""><a href="mailto:jsword-devel@crosswire.org" class="">jsword-devel@crosswire.org</a><br class="">http://www.crosswire.org/mailman/listinfo/jsword-devel<br class=""></div></blockquote></div><br class=""></div></body></html>