slachiewicz / caliper

Automatically exported from code.google.com/p/caliper
Apache License 2.0
0 stars 0 forks source link

caliper launch script not up to date #217

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Downloaded and compiled (caliper, examples, tutorial folders)
2. Try to run tutorial classes with scripts/caliper
3. Raises an error for Class not found exception for com.google.caliper.Runner, 
which makes sense since this class Runner do not exist in the master branch 
anymore

What is the expected output? What do you see instead?
Launch (publish the results) the example without any problems.

What version of the product are you using? On what operating system?

commit 48b1f239a98604b13731e0b635b24edbe5be6ab0. 

Environment:
Distributor ID: Ubuntu
Description:    Ubuntu 12.10
Release:    12.10
Codename:   quantal
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)

Original issue reported on code.google.com by jbotnasc...@gmail.com on 12 Feb 2013 at 1:37

GoogleCodeExporter commented 9 years ago
The new body of the script could be (this would load in classpath all jars in 
scripts/lib): 

export PATH=$PATH:$JAVA_HOME/bin
export base=`dirname $0`
export ALLOCATION_JAR=$base/lib/allocation.jar
export MAVEN_DEP=$(ls -m $base/lib/ | xargs echo ',' | sed "s/, 
/:$base\/lib\//g")
exec java -cp 
$ALLOCATION_JAR:$base/../caliper/target/caliper-1.0-SNAPSHOT.jar:$base/../exampl
es/target/caliper-examples-1.0-SNAPSHOT.jar:$base/../tutorial/:$CLASSPATH:$MAVEN
_DEP com.google.caliper.runner.CaliperMain $*

Original comment by jbotnasc...@gmail.com on 12 Feb 2013 at 1:59

GoogleCodeExporter commented 9 years ago
Hmm.  I don't know if we really even want to keep that script around…  I'll 
definitely have to figure that out for 1.0.

Original comment by gak@google.com on 12 Feb 2013 at 10:34