Created
November 4, 2013 14:05
-
-
Save wolakRafal/7302919 to your computer and use it in GitHub Desktop.
scala assigment bloxorz
This file contains 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
<classpath> | |
<classpathentry output="target/scala-2.10/classes" path="src/main/scala" kind="src"></classpathentry> | |
<classpathentry output="target/scala-2.10/test-classes" path="src/test/scala" kind="src"></classpathentry> | |
<classpathentry kind="con" path="org.scala-ide.sdt.launching.SCALA_CONTAINER"></classpathentry> | |
<classpathentry path="./lib_managed/jars/org.scalatest/scalatest_2.10/scalatest_2.10-1.9.1.jar" kind="lib"></classpathentry> | |
<classpathentry path="./lib_managed/jars/org.scala-lang/scala-actors/scala-actors-2.10.0.jar" kind="lib"></classpathentry> | |
<classpathentry path="./lib_managed/jars/org.scala-lang/scala-reflect/scala-reflect-2.10.0.jar" kind="lib"></classpathentry> | |
<classpathentry path="./lib_managed/jars/junit/junit/junit-4.10.jar" kind="lib"></classpathentry> | |
<classpathentry path="./lib_managed/jars/org.hamcrest/hamcrest-core/hamcrest-core-1.1.jar" kind="lib"></classpathentry> | |
<classpathentry path="org.eclipse.jdt.launching.JRE_CONTAINER" kind="con"></classpathentry> | |
<classpathentry path="bin" kind="output"></classpathentry> | |
</classpath> |
This file contains 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
<projectDescription> | |
<name>progfun-streams</name> | |
<buildSpec> | |
<buildCommand> | |
<name>org.scala-ide.sdt.core.scalabuilder</name> | |
</buildCommand> | |
</buildSpec> | |
<natures> | |
<nature>org.scala-ide.sdt.core.scalanature</nature> | |
<nature>org.eclipse.jdt.core.javanature</nature> | |
</natures> | |
</projectDescription> |
This file contains 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
#Generated by sbteclipse | |
#Mon Sep 23 21:30:24 CEST 2013 | |
deprecation=true | |
feature=true | |
scala.compiler.useProjectSettings=true |
This file contains 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
name <<= submitProjectName(pname => "progfun-"+ pname) | |
version := "1.0.0" | |
scalaVersion := "2.10.2" | |
scalacOptions ++= Seq("-deprecation", "-feature") | |
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1" % "test" | |
libraryDependencies += "junit" % "junit" % "4.10" % "test" | |
// This setting defines the project to which a solution is submitted. When creating a | |
// handout, the 'createHandout' task will make sure that its value is correct. | |
submitProjectName := "streams" | |
// See documentation in ProgFunBuild.scala | |
projectDetailsMap := { | |
val currentCourseId = "progfun-003" | |
Map( | |
"example" -> ProjectDetails( | |
packageName = "example", | |
assignmentPartId = "fTzFogNl", | |
maxScore = 10d, | |
styleScoreRatio = 0.2, | |
courseId=currentCourseId), | |
"recfun" -> ProjectDetails( | |
packageName = "recfun", | |
assignmentPartId = "3Rarn9Ki", | |
maxScore = 10d, | |
styleScoreRatio = 0.2, | |
courseId=currentCourseId), | |
"funsets" -> ProjectDetails( | |
packageName = "funsets", | |
assignmentPartId = "fBXOL6Rd", | |
maxScore = 10d, | |
styleScoreRatio = 0.2, | |
courseId=currentCourseId), | |
"objsets" -> ProjectDetails( | |
packageName = "objsets", | |
assignmentPartId = "05dMMEz7", | |
maxScore = 10d, | |
styleScoreRatio = 0.2, | |
courseId=currentCourseId), | |
"patmat" -> ProjectDetails( | |
packageName = "patmat", | |
assignmentPartId = "4gPmpcif", | |
maxScore = 10d, | |
styleScoreRatio = 0.2, | |
courseId=currentCourseId), | |
"forcomp" -> ProjectDetails( | |
packageName = "forcomp", | |
assignmentPartId = "fG2oZGIO", | |
maxScore = 10d, | |
styleScoreRatio = 0.2, | |
courseId=currentCourseId), | |
"streams" -> ProjectDetails( | |
packageName = "streams", | |
assignmentPartId = "DWKgCFCi", | |
maxScore = 10d, | |
styleScoreRatio = 0.2, | |
courseId=currentCourseId)//, | |
// "simulations" -> ProjectDetails( | |
// packageName = "simulations", | |
// assignmentPartId = "iYs4GARk", | |
// maxScore = 10d, | |
// styleScoreRatio = 0.2, | |
// courseId="progfun2-001"), | |
// "interpreter" -> ProjectDetails( | |
// packageName = "interpreter", | |
// assignmentPartId = "1SZhe1Ut", | |
// maxScore = 10d, | |
// styleScoreRatio = 0.2, | |
// courseId="progfun2-001") | |
) | |
} | |
// Files that we hand out to the students | |
handoutFiles <<= (baseDirectory, projectDetailsMap, commonSourcePackages) map { (basedir, detailsMap, commonSrcs) => | |
(projectName: String) => { | |
val details = detailsMap.getOrElse(projectName, sys.error("Unknown project name: "+ projectName)) | |
val commonFiles = (PathFinder.empty /: commonSrcs)((files, pkg) => | |
files +++ (basedir / "src" / "main" / "scala" / pkg ** "*.scala") | |
) | |
(basedir / "src" / "main" / "scala" / details.packageName ** "*.scala") +++ | |
commonFiles +++ | |
(basedir / "src" / "main" / "resources" / details.packageName ** "*") +++ | |
(basedir / "src" / "test" / "scala" / details.packageName ** "*.scala") +++ | |
(basedir / "build.sbt") +++ | |
(basedir / "project" / "build.properties") +++ | |
(basedir / "project" ** ("*.scala" || "*.sbt")) +++ | |
(basedir / "project" / "scalastyle_config.xml") +++ | |
(basedir / "lib_managed" ** "*.jar") +++ | |
(basedir * (".classpath" || ".project")) +++ | |
(basedir / ".settings" / "org.scala-ide.sdt.core.prefs") | |
} | |
} | |
// This setting allows to restrict the source files that are compiled and tested | |
// to one specific project. It should be either the empty string, in which case all | |
// projects are included, or one of the project names from the projectDetailsMap. | |
currentProject := "" | |
// Packages in src/main/scala that are used in every project. Included in every | |
// handout, submission. | |
commonSourcePackages += "common" | |
// Packages in src/test/scala that are used for grading projects. Always included | |
// compiling tests, grading a project. | |
gradingTestPackages += "grading" |
This file contains 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
PK | |