name := "geocss"

libraryDependencies <++= gtVersion { v =>
  Seq(
    "org.geotools" % "gt-main" % v,
    "org.geotools" % "gt-cql" % v
  )
}

libraryDependencies +=
  "org.specs2" %% "specs2" % "1.7.1" % "test"

initialCommands += """
import org.geoscript.geocss._
import collection.JavaConversions._
val kb = dwins.logic.Knowledge.Oblivion(SelectorsAreSentential)
def in(path: String) = new java.io.FileReader(new java.io.File(path))
def load(path: String) = CssParser.parseAll(CssParser.styleSheet, in(path)).get
val tx = new Translator()
"""

name := "geocss"

libraryDependencies <++= gtVersion { v =>
  Seq(
    "org.geotools" % "gt-main" % v,
    "org.geotools" % "gt-cql" % v
  )
}

libraryDependencies +=
  "org.specs2" %% "specs2" % "1.7.1" % "test"

initialCommands += """
import org.{ geotools => gt }
import org.opengis.{ filter => ogc }
import org.geoscript._
import gt.filter.text.ecql.ECQL.{ toFilter => cql }
import geocss.filter.FiltersAreSentential
import support.logic.Sentential, support.logic.Knowledge.Oblivion
def reduce[P : Sentential](p: P) = Oblivion[P].reduce(p)
def in(path: String) = new java.io.FileReader(new java.io.File(path))
def load(path: String) = 
  geocss.CssParser.parseAll(
    geocss.CssParser.styleSheet, in(path)
  ).get
val tx = new geocss.Translator()
"""

Fix up console preamble for geocss module
Fix up console preamble for geocss module
