Skip to content

Commit

Permalink
Description of caching classpath (thanks @shaunlebron)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfikes committed Apr 14, 2016
1 parent af14de1 commit 69e1d8e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions site/src/dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,19 @@ If you are using Boot, the equivalent would be
```
$ planck -c`boot show -c`
```

#### Caching Classpath

Both Leiningen and Boot take a bit of time to verify that dependency artifacts have been downloaded. To make launching instant, just make a start shell script that looks like the following. (With this approach, be sure to manually delete the `.classpath` file if you change your dependencies.)

```
if [ ! -f .classpath ]; then
classpath=`lein classpath | tee .classpath`
else
classpath=`cat .classpath`
fi
planck -c $classpath
```

(And if you are using Boot, replace `lein classpath` with `boot show -c`.)

0 comments on commit 69e1d8e

Please sign in to comment.