Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 91fa353da1
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 28 lines (23 sloc) 0.994 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
import IO._

name := "cccp-jedit-client"

unmanagedJars in Compile += {
  var jedit = new File(System.getenv("JEDIT_HOME") + "/jedit.jar")
  if (!jedit.exists) jedit = new File("/Applications/jEdit.app/Contents/Resources/Java/jedit.jar")
  if (!jedit.exists) jedit = new File("c:/Program Files/jEdit/jedit.jar")
  if (!jedit.exists) sys.error("jedit.jar was not found. please, set the JEDIT_HOME environment variable")
  Attributed.blank(jedit)
}

exportJars := true
  
stage <<= (dependencyClasspath in Runtime, exportedProducts in Runtime) map { (depCP, exportedCP) =>
  // this task "borrowed" from ENSIME (thanks, Aemon!)
  val jedit = Path("clients/jedit")
  val log = LogManager.defaultScreen
  delete(file("dist"))
  log.info("Copying runtime environment to ./dist....")
  createDirectories(List(
    file("clients/jedit/dist"),
    file("clients/jedit/dist/lib")))
  // Copy the runtime jars
  val deps = (depCP ++ exportedCP).map(_.data)
  copy(deps x flat(jedit / "dist" / "lib"))
}
Something went wrong with that request. Please try again.