sbt에서 사용할 디렉토리 구조 만들기
다음 주소에서 스크립트를 sbtmkdirs.sh 스크립트를 다운로드 받는다.
https://gist.github.com/alvinj/3194379
프로젝트를 만들고자 하는 디렉토리에서 스크립트를 실행하고
몇가지 물음에 답하면 하위에 해당 프로젝트가 만들어진다.
# sbtmkdirs.sh
This script creates an SBT project directory beneath the current directory.
Directory/Project Name (MyFirstProject): ScalaTest
Create .gitignore File? (Y/n): n
Create README.md File? (Y/n): n
-----------------------------------------------
Directory/Project Name: ScalaTest
Create .gitignore File?: n
Create README.md File?: n
-----------------------------------------------
Create Project? (Y/n): y
Project created. See the following URL for build.sbt examples:
http://alvinalexander.com/scala/sbt-syntax-examples
[~/work/scala]#
스크립트 실행 후 다음 디렉토리 및 파일이 생성된 것을 확인할 수 있다.
# ls ScalaTest/
total 8
0 ./ 0 ../ 8 build.sbt 0 lib/ 0 project/ 0 src/ 0 target/