Created
December 28, 2011 01:30
-
-
Save xeno-by/1525721 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package scala.tools | |
package partest | |
import nsc.io.{ File, Path, Directory } | |
import util.{ PathResolver } | |
import nsc.Properties.{ propOrElse, propOrNone, propOrEmpty } | |
object PartestDefaults { | |
import nsc.Properties._ | |
private def wrapAccessControl[T](body: => Option[T]): Option[T] = | |
try body catch { case _: java.security.AccessControlException => None } | |
def testRootName = propOrNone("partest.root") | |
def srcDirName = propOrElse("partest.srcdir", "files") | |
def testRootDir = testRootName map (x => Directory(x)) | |
// def classPath = propOrElse("partest.classpath", "") | |
//def classPath = PathResolver.Environment.javaUserClassPath // XXX | |
def classPath = """C:\Projects\Kepler\build\locker\classes\compiler;C:\Projects\Kepler\build\locker\classes\library;C:\Projects\Kepler\build\locker\classes\partest""" | |
def javaCmd = propOrElse("partest.javacmd", "java") | |
def javacCmd = propOrElse("partest.javac_cmd", "javac") | |
def javaOpts = propOrElse("partest.java_opts", "") | |
def scalacOpts = propOrElse("partest.scalac_opts", "-deprecation") | |
def testBuild = propOrNone("partest.build") | |
def errorCount = propOrElse("partest.errors", "0").toInt | |
def numActors = propOrElse("partest.actors", "6").toInt | |
def poolSize = wrapAccessControl(propOrNone("actors.corePoolSize")) | |
def timeout = "1200000" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment