clojureLeiningen2では、依存する外部ライブラリは全てMavenリポジトリを経由してインストールするようになっている。単独で配布されている jar ファイルを使いたかったので、方法を調べた。意外と簡単。結論としてはhttp://www.pgrs.net/2011/10/30/using-local-jars-with-leiningen/ に書かれている。ちょっと手直しをしてすぐに動いた。まず、プロジェクトを作成する $ lein new test Generating a project called test based on the 'default' template. To see other templates (app, lein plugin, etc), try `lein help new`. $ cd test/ $ ls README.md doc/
ClojureScriptに手を出したのですが、lein depsがエラーを吐いてしまったので、ここで一つ、leiningen 2(lein2)に移行してみようと思ったわけです。 1から2へのアップグレード方法が本家のここのページにあるので、これに沿ってやってみた作業のログです。 ちなみに、環境はWindows7で、ファイル操作はEmacsのeshellでやっています。 古いLeiningen(Leiningen1)を退避します。 手順には $ mv ~/bin/lein ~/bin/lein1 こうしろと書いてありますが、以前インストールした場所で作業します。 d/u/q/D/clojure/leiningen $ ls -l total 402 -rwxrwxrwx 1 q3197c Domain U 5227 7 31 19:02 lein.bat -rwxr
lein-oneoff Dealing with dependencies and the classpath can be a pain. Leiningen takes most of the pain away, but creating a new leiningen project for a simple one-off script may sometimes feel like overkill. This is where lein-oneoff comes in. With the help of lein-oneoff you can open a file, declare dependencies at the top, and write the rest of the code as usually. lein-oneoff will let you run
Leiningenの調べ物をしていてgithubのリポジトリを見ていたらzshの補完関数があったので使ってみました. 導入方法 概要はzsh_completion.zshのコメント欄に書いてあります. zshの$fpathの通ったディレクトリにzsh_completion.zshという名前のファイルをダウンロードして,そのファイルの名前を_leinに変更すれば利用できます. $ cd /Users/yag_ays/.zsh/functions/Completion $ curl -O https://raw.github.com/technomancy/leiningen/master/zsh_completion.zsh $ mv zsh_completion.zsh _lein 使い方 lein [TAB]とすればコマンド一覧が表示されます.また,lein test [TAB]とすれば
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く