Skip to content

Commit

Permalink
Build a jar file and run from the jar file.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkraljevic committed Dec 8, 2013
1 parent 1fff31d commit fa152cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion h2o-cookbook/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ default: build

build:
ant -f h2o-cookbook.xml
jar cf h2o-cookbook.jar -C out/test/test .

test:
java -cp `cat ../target/classpath | sed 's/lib/..\/lib/g'`:../target/h2o.jar:out/test/test cookbook.CookbookRunner
java -cp `cat ../target/classpath | sed 's/lib/..\/lib/g'`:../target/h2o.jar:h2o-cookbook.jar cookbook.CookbookRunner

clean:
ant -f h2o-cookbook.xml clean
rm -f h2o-cookbook.jar

0 comments on commit fa152cf

Please sign in to comment.