-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (30 loc) · 901 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
SHELL = /bin/bash
.DEFAULT_GOAL := amm
amm:
$(MAKE) -C ammonites amm
pdfminer.six:
pip install pdfminer.six
toc.xml:
dumppdf.py --extract-toc tmp/Scala-Cookbook.pdf | tee toc.xml
update-toc: toc.xml
amm ReplaceToc.sc
# https://alvinalexander.com/scala/sbt-how-specify-main-method-class-to-run-in-project
.PHONY: sbt-run
sbt-run:
sbt run
.PHONY: sbt-run-main
sbt-run-main:
sbt "runMain hello.Hello"
scalatra-init:
# http://scalatra.org/getting-started/first-project.html
sbt new scalatra/scalatra.g8
post-stock:
http localhost:8080/stocks/saveJsonStock symbol=AAPL price:=120
# 15.12. Setting URL Headers When Sending a Request
HttpTea:
# http://httptea.sourceforge.net/
java -jar HttpTea.jar -l 9001
# XXX: https://github.com/playframework/playframework/issues/4884
# `rm -rf ~/.ivy2/cache` may help to resolve depdency issue
play-init:
sbt new playframework/play-scala-seed.g8