pluginはビルド定義内において、外部のコードを使用するための根本的な手法である。pluginはタスクを実装するために用いられるライブラリとも言える。例えば、タスクを処理するmarkdownを記述するためのKnockoffを(pluginとして)使用することができる。pluginはsbt Settingsの1行を定義することができ、それらのsettingsは自動的にすべてのプロジェクト、もしくは明確に定義されていれば指定したprojectに追加される。例としては、'proguard'タスクや関連する(overrideされた)settingsをpluginは(あるプロジェクトに)追加する。Commandsはcommands settingによって追加される。そして、(sbt) 0.7.xにおいてはpluginはcommandsを追加することもできる。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# dependencies | |
# + convert | |
SCRIPT_DIR=`dirname $0` | |
# If ./eps directory doesn't exist, make directory . | |
if [ ! -d ${SCRIPT_DIR}/eps ] | |
then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias la='ls -a' | |
alias ll='ls -l' | |
alias up='cd ..' | |
alias upp='cd ../../' | |
alias uppp='cd ../../../' | |
alias v='vim' | |
alias vi='vim' | |
# original command rgrep see: http://d.hatena.ne.jp/shunsuk/20120629/1340925330 | |
alias rgrep='find . -name "*.git*" -prune -o -type f -print0 | xargs -0 grep' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tree | |
. | |
├── src | |
│ ├── fuga | |
│ │ └── Fuga.java | |
│ └── hoge | |
│ └── App.java | |
└── target | |
javac `find src -name '*.java'` -d target/ |
Copy text into clipboard with Ctrl+c on Ubuntu vim .
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find *.jar in $HOME/hoge directory and copy all jar files found . | |
find $HOME/hoge -name '*.jar' -exec cp {} ./lib/ \; | |
# execute above command more carefully . | |
find $HOME/hoge -name '*.jar' -ok cp {} ./lib/ \; |
reference web sites
- [Webサービスを開発するPart1] (http://www.ibm.com/developerworks/jp/webservices/library/ws-devaxis2part1/ "Webサービスを開発するPart1")
requirements
- JDK 1.7.0_25