Skip to content

Instantly share code, notes, and snippets.

@harrah
Created February 21, 2011 20:21
Show Gist options
  • Save harrah/837650 to your computer and use it in GitHub Desktop.
Save harrah/837650 to your computer and use it in GitHub Desktop.
You'll need 0.9.x set up (probably best to track 0.9 branch at this point):
https://github.com/harrah/xsbt/tree/0.9
$ git clone git://github.com/jorgeortiz85/rogue.git
$ cd rogue/
$ git checkout xsbt
$ xsbt
> compile
...
> last compile
...
> last-grep joda compile
...
> show update
...
> inspect update
...
An explicit 'update' is not necessary- it should happen whenever dependency
configuration has changed since the last update.
Note that tab completion is supported for the arguments to 'last', 'last-grep',
and 'show'. On a supported system, last-grep will highlight the search term
in the result. As implied, 'last' and 'last-grep' only show the output from
the previous execution.
'show' runs its argument and calls toString on the result of the task. It won't
necessarily be readable, as in this case with 'update' where the result is a
Map with several entries. Here the point is to show that 'update' provides
the mapping from configuration to the list of jars for that configuration.
'inspect' shows information about a setting or task. For example, from
'inspect update' we see that 'managed-classpath' uses 'update'. You can then
do 'show managed-classpath' and 'inspect managed-classpath' and so on.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment