Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

merge sbisbee's work + configurable root dirs #148

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

timkuijsten
Copy link

use configurable root dirs, default to /usr/local

sbisbee and others added 23 commits September 1, 2010 17:16
Conflicts:
	THANKS.md
	src/main/assembly/dist.xml
	src/main/bin/run
destRootDir
destVarDir
destVarLibDir
destEtcDir
destBinDir
destDocDir

example: mvn -DdestRootDir="" -DdestDocDir="/usr/local/share"
@timkuijsten
Copy link
Author

Succesfully built on Ubuntu Server 10.04 amd64 with: mvn -DdestRootDir="" -DdestDocDir="/usr/local/share" -DdestBinDir="/usr/local/bin"

@timkuijsten
Copy link
Author

but i do see some runtime errors now:
/usr/local/couchdb-lucene-0.8.0-SNAPSHOT$ ./usr/local/bin/couchdb-lucene
Exception in thread "main" java.lang.NoClassDefFoundError: com/github/rnewson/couchdb/lucene/Main
Caused by: java.lang.ClassNotFoundException: com.github.rnewson.couchdb.lucene.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: com.github.rnewson.couchdb.lucene.Main. Program will exit.

Have to investigate..

@@ -2,3 +2,4 @@
* Thanks to Adam Lofts for the performance boosting JSONDocumentAdapter et al.
* Thanks to Santiago M. Mola for the termvector option.
* Thanks to Joe Hillenbrand for adding default result limit to config.
* Thanks to Sam Bisbee.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should add yourself too :)

SCRIPTNAME=/etc/init.d/$NAME
PIDFILE=/var/run/$NAME/$NAME.pid
DAEMON=$NAME
DAEMON_ARGS="-o /var/log/couchdb-lucene.log -b -p $PIDFILE"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is absolute, but should be relative to ${destRootDir} too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants