Skip to content

Commit

Permalink
Fixed README
Browse files Browse the repository at this point in the history
  • Loading branch information
Heiko Seeberger committed Jun 22, 2011
1 parent b0cb0a8 commit b2d73c3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.textile
Expand Up @@ -5,18 +5,22 @@ This project is a plugin for "SBT 0.10":http://github.com/harrah/xsbt/ providing
h2. Usage

* First you have to "install" the plugin. Since SBT 0.10 (0.9) this is as easy as adding a library dependency on sbteclipse to your project. Or even better: Create a global plugin project (just a _build.sbt_ file) in the directory _~/.sbt/plugins_, if you don't already have one, and add the library dependency there. Then you can use sbteclipse in any of your projects "for free". For details about SBT plugins please see the "SBT documentation":https://github.com/harrah/xsbt/wiki/Plugins.
* In order to add the library dependency on sbteclipse, you have to add the following lines to your _build.sbt_ file:
* In order to add the library dependency on sbteclipse, you have to add the below lines to your _build.sbt_ file
* Now you can use the command _eclipse_ to create Eclipse project files
* Finally you can import the project in Eclipse unsing the "Import Wizard"

h3. Add this to your _build.sbt_ file

<pre><code>resolvers += {
val typesafeRepoUrl = new java.net.URL("http://repo.typesafe.com/typesafe/releases")
val pattern = Patterns(false, "[organisation]/[module]/[sbtversion]/[revision]/[type]s/[module](-[classifier])-[revision].[ext]")
Resolver.url("Typesafe Repository", typesafeRepoUrl)(pattern)
}

libraryDependencies <<= (libraryDependencies, sbtVersion) { (deps, version) =>
deps :+ ("com.typesafe.sbteclipse" %% "sbteclipse" % "1.1" extra("sbtversion" -> version))
}
</code></pre>
* Now you can use the command _eclipse_ to create Eclipse project files
* Finally you can import the project in Eclipse unsing the "Import Wizard"

h2. Options

Expand Down

0 comments on commit b2d73c3

Please sign in to comment.