Permalink
Browse files

Updated project cross-build to 2.9.0.final; eliminated support for 2.…

…9.0.RC3
  • Loading branch information...
djspiewak committed May 12, 2011
1 parent 4de69f3 commit 2e196e751d2e010de9ecc7c68b845c016d732951
Showing with 4 additions and 16 deletions.
  1. +1 −1 README.rst
  2. +1 −1 project/build.properties
  3. +2 −14 project/build/Project.scala
View
@@ -102,8 +102,8 @@ Supported Versions of Scala
Anti-XML is cross-built_ for the following Scala versions:
* **2.9.0**
* **2.8.1**
* **2.9.0.RC3**
While it is theoretically possible to add support for 2.8.0, we have no plans to
do so at this time. The reason being that Specs2_ – the testing framework used
View
@@ -4,5 +4,5 @@ project.organization=com.codecommit
project.name=anti-xml
sbt.version=0.7.5
project.version=0.2-SNAPSHOT
build.scala.versions=2.8.1 2.9.0.RC3
build.scala.versions=2.9.0 2.8.1
project.initialize=false
@@ -73,25 +73,13 @@ class Project(info: ProjectInfo) extends DefaultProject(info) with Eclipsify wit
managedSourcePath.asFile.mkdir()
}
val prefix = if (buildScalaVersion startsWith "2.9") {
"""
package scala.collection {
package object bippy {
type ImplementableGenTraversableOnce[A] = GenTraversableOnce[A]
}
}
"""
} else {
""
}
val body = if (buildScalaVersion startsWith "2.9") {
"""type CompatTraversable[A] = scala.collection.bippy.ImplementableGenTraversableOnce[A]"""
"""type CompatTraversable[A] = scala.collection.GenTraversableOnce[A]"""
} else {
"""type CompatTraversable[A] = Traversable[A]"""
}
val fullSource = prefix + """
val fullSource = """
package com.codecommit.antixml {
private[antixml] trait ScalaCompat {""" + body + """}
}

0 comments on commit 2e196e7

Please sign in to comment.