mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-4.1' into cassandra-5.0
This commit is contained in:
commit
3f01635ce1
|
|
@ -30,10 +30,18 @@ CLASSPATH="$CASSANDRA_CONF"
|
||||||
# compiled classes. NOTE: This isn't needed by the startup script,
|
# compiled classes. NOTE: This isn't needed by the startup script,
|
||||||
# it's just used here in constructing the classpath.
|
# it's just used here in constructing the classpath.
|
||||||
if [ -d $CASSANDRA_HOME/build ] ; then
|
if [ -d $CASSANDRA_HOME/build ] ; then
|
||||||
#cassandra_bin="$CASSANDRA_HOME/build/classes/main"
|
jars_cnt="`ls -1 $CASSANDRA_HOME/build/apache-cassandra*.jar | grep -v 'javadoc.jar' | grep -v 'sources.jar' | wc -l | xargs echo`"
|
||||||
cassandra_bin=`ls -1 $CASSANDRA_HOME/build/apache-cassandra*.jar`
|
if [ "$jars_cnt" -gt 1 ]; then
|
||||||
cassandra_bin="$cassandra_bin:$CASSANDRA_HOME/build/classes/stress:$CASSANDRA_HOME/build/classes/fqltool"
|
dir="`cd $CASSANDRA_HOME/build; pwd`"
|
||||||
CLASSPATH="$CLASSPATH:$cassandra_bin"
|
echo "There are JAR artifacts for multiple versions in the $dir directory. Please clean the project with 'ant realclean' and build it again." 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$jars_cnt" = "1" ]; then
|
||||||
|
cassandra_bin="`ls -1 $CASSANDRA_HOME/build/apache-cassandra*.jar | grep -v javadoc | grep -v sources`"
|
||||||
|
cassandra_bin="$cassandra_bin:$CASSANDRA_HOME/build/classes/stress:$CASSANDRA_HOME/build/classes/fqltool"
|
||||||
|
CLASSPATH="$CLASSPATH:$cassandra_bin"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# the default location for commitlogs, sstables, and saved caches
|
# the default location for commitlogs, sstables, and saved caches
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue