Skip to content

Commit

Permalink
Copy test input to image when allImage is specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Robbins committed Jun 8, 2011
1 parent ea9f23c commit f5c7c16
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 11 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Expand Up @@ -197,6 +197,13 @@ allDistImage = copySpec {
}
break

case "s4-example-testinput":
print "Got here"
into("s4-example-testinput") {
from proj.sourceSets.main.resources
}
break

case ~/(s4\-example).*/:
into ("s4-example-apps/" + proj.name + "/lib") {
from(
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 4 additions & 11 deletions s4-tools/loadgenerator/src/main/resources/scripts/generate-load.sh
Expand Up @@ -68,13 +68,6 @@ if [ "x$LOCK_DIR" == "x" ] ; then
LOCK_DIR="${CORE_HOME}/lock"
fi

echo "core home is ${CORE_HOME}"
echo "load generator home is ${LOAD_GENERATOR_HOME}"
echo "Adapter adress ${ADAPTER_ADDRESS}"
echo "Rate ${RATE}"
echo "Display interval ${DISPLAY_INTERVAL}"
echo "Schema list ${SCHEMA_FILE_LIST}"

JAVA_LOC=""
if [ "x$JAVA_HOME" != "x" ] ; then
JAVA_LOC=${JAVA_HOME}"/bin/"
Expand All @@ -85,9 +78,9 @@ if [ "x$LOCK_DIR" != "x" ] ; then
JAVA_OPTS="$JAVA_OPTS -Dlock_dir=$LOCK_DIR "
fi

echo "java location is ${JAVA_LOC}"
echo -n "JAVA VERSION="
echo `${JAVA_LOC}java -version`
#echo "java location is ${JAVA_LOC}"
#echo -n "JAVA VERSION="
#echo `${JAVA_LOC}java -version`
#---------------------------------------------
#ADDING CORE JARS TO CLASSPATH
#---------------------------------------------
Expand All @@ -96,5 +89,5 @@ CLASSPATH=`find $CORE_HOME -name "*.jar" | awk '{p=$0"'$CP_SEP'"p;} END {print p
CLASSPATH=$CLASSPATH$CP_SEP`find $LOAD_GENERATOR_HOME -name "*.jar" | awk '{p=$0"'$CP_SEP'"p;} END {print p}'`

CMD="${JAVA_LOC}java $JAVA_OPTS -classpath $CLASSPATH io.s4.tools.loadgenerator.LoadGenerator -a ${ADAPTER_ADDRESS} -r${RATE} -d ${DISPLAY_INTERVAL} $INPUT_FILE"
echo "Running ${CMD}"
#echo "Running ${CMD}"
$CMD
2 changes: 2 additions & 0 deletions settings.gradle
Expand Up @@ -24,6 +24,7 @@ include 's4-example-twittertopiccount-scala'
include 's4-example-speech01'
include 's4-example-speech01-scala'
include 's4-example-speech02'
include 's4-example-testinput'
include 's4-tools-loadgenerator'

/* Set dirs for projects whose name doesn't follow the dir structure. */
Expand All @@ -35,4 +36,5 @@ project(':s4-example-twittertopiccount-scala').projectDir = new File(settingsDir
project(':s4-example-speech01').projectDir = new File(settingsDir, 's4-examples/speech01')
project(':s4-example-speech01-scala').projectDir = new File(settingsDir, 's4-examples/speech01-scala')
project(':s4-example-speech02').projectDir = new File(settingsDir, 's4-examples/speech02')
project(':s4-example-testinput').projectDir = new File(settingsDir, 's4-examples/testinput')
project(':s4-tools-loadgenerator').projectDir = new File(settingsDir, 's4-tools/loadgenerator')

0 comments on commit f5c7c16

Please sign in to comment.