code

Its all just ones and zeroes isn't it? 
« Back to blog

Configuring Eclipsify 0.8 with Liftweb (aka Lift) to generate eclipse project files

I wanted to submit patches to Lift, and I wanted to use Eclipse with the Scala IDE Plugin to do that.  I'm using the Scala IDE plugin 2.0.0 RC1 for Scala 2.9.1   This builds on my previous post about getting Eclipsify 0.8.0 built.

  1. Have sbt and git installed
  2. git clone https://github.com/lift/framework.git
  3. Make sure it builds
    1. See Building lift
    2. cd framework
    3. make sure project/build.properties has the appropriate versions you want to build in it, e.g. build.scala.versions=2.9.1
    4. ./liftsh +update +clean +publish
    5. If you run into PermGen issues, try setting a larger permgen size in the sbt script file, e.g. java -server -XX:MaxPermSize=384M -Xmx1024M -jar `dirname $0`/sbt-launch-0.7.7.jar "$@"
  4. Get Eclipsify 0.8.0 working, need to use this older version because the Lift requires Sbt 0.7.7 whereas the latest Eclipsify requires Sbt 0.11
  5. Configure the lift framework sbt project to use Eclipsify
    1. See Using the Plugin in your own project here: https://github.com/musk/SbtEclipsify/tree/0.8.0
    2. Add the line lazy val eclipse = "de.element34" % "sbt-eclipsify" % "0.8.0-SNAPSHOT" to framework/project/plugins/Plugins.scala
    3. Edit framework/project/plugins/LiftFrameworkProject.scala, so that the class LiftFrameworkProject extends Eclipsify, e.g.class LiftFrameworkProject(info: ProjectInfo) extends ParentProject(info) with LiftParentProject with Eclipsify, and has import import de.element34.sbteclipsify._
  6. Rebuild lift: ./liftsh +update +clean +publish
  7. Create eclipse project files: sbt eclipse (in the framework folder)

Comments (0)

Leave a comment...