svn commit: r581303 - /xml/xindice/trunk/java/examples/guide/run

[email protected]
Newsgroups gmane.text.xml.xindice.devel
Message-ID <[email protected]>
Author: vgritsenko
Date: Tue Oct  2 09:55:14 2007
New Revision: 581303

URL: http://svn.apache.org/viewvc?rev=581303&view=rev
Log:
update run script

Modified:
    xml/xindice/trunk/java/examples/guide/run

Modified: xml/xindice/trunk/java/examples/guide/run
URL: http://svn.apache.org/viewvc/xml/xindice/trunk/java/examples/guide/run?rev=581303&r1=581302&r2=581303&view=diff
==============================================================================
--- xml/xindice/trunk/java/examples/guide/run (original)
+++ xml/xindice/trunk/java/examples/guide/run Tue Oct  2 09:55:14 2007
@@ -19,13 +19,11 @@
 
 CMD_HOME=`dirname $0`
 CMD_NAME=`basename $0`
-echo $CMD_HOME
-JARS=`ls -1 $CMD_HOME/../../lib/*.jar`
-JAR_LIST=""
-for jar in $JARS ; do 
-   JAR_LIST="$JAR_LIST `basename $jar`"
-   CLASSPATH=$jar:$CLASSPATH ;
+XINDICE_HOME=`cd $CMD_HOME/../../.. && pwd`
+
+JARS="`ls -1 $XINDICE_HOME/lib/endorsed/*.jar` `ls -1 $XINDICE_HOME/lib/*.jar` `ls -1 $XINDICE_HOME/*.jar`"
+for jar in $JARS ; do
+   CLASSPATH=$jar:$CLASSPATH
 done
-   
-java -Dcmd.home=$CMD_HOME -classpath $CLASSPATH $@
 
+java -Dcmd.home=$CMD_HOME -classpath $CLASSPATH $@
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.