Skip to content

Commit

Permalink
Added example to README.
Browse files Browse the repository at this point in the history
  • Loading branch information
Heiko Seeberger committed Mar 31, 2011
1 parent 6f9df54 commit fa0a20a
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions README.textile
Expand Up @@ -6,9 +6,30 @@ Attention: This is work in progress and so is SBT 0.9. In order to use this plug

h2. Usage

* Create a SBT project
* Add the plugin
* First add the plugin to your global plugins project _~/.sbt/plugins_
* Then create a SBT project
* Now you can use the command _eclipse_ to create Eclipse project files
* Finally you can import the project in Eclipse unsing the "Import Wizard"

Example:

<pre><code>~$ mkdir -p .sbt/plugins
~$ cd .sbt/plugins/
plugins$ sbt09
> set libraryDependencies += "com.weiglewilczek.sbteclipse" %% "sbteclipse" % "0.1"
> set resolvers += ScalaToolsSnapshots
> session save
> exit

tmp$ mkdir test
tmp$ cd test
test$ sbt09
> eclipse
[error] Only for Scala 2.9!
> set scalaVersion := "2.9.0.RC1"
> eclipse
[info] Successfully created an Eclipse project for you. Have fun!
</code></pre>

h2. License

Expand Down

0 comments on commit fa0a20a

Please sign in to comment.