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
SBT projects and packages: | |
adept-hash (merge with core?) | |
- adept.hash (Hashing object with (static) methods used to generate hashes. Hashes are generated from strings) | |
adept-core | |
- adept.variant.models (Variant, Id, Attribute, ArtifactRef, Requirement (dependency)) | |
- adept.variant.models.constraints (Constraint base class + EqualConstraint and IdConstraint (TODO) ) | |
- adept.variant.ordering (Ordering implicits. Used to generate the same ordered Seq(uences) from unordered Set(s)) |
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
val standardProgressIndicator = new adept.progress.default.AllEncompassingProgress(System.out) | |
val repo1: RepositoryRef = GitRepository.init(Adept.HOME_DIR, "one") //init new adept repository in HOME_DIR/one | |
val repo2: RepositoryRef = GitRepository.open(Adept.HOME_DIR, "two") //open adept repository in HOME_DIR/two | |
val repo3: RepositoryRef = GitRepository.clone(Adept.HOME_DIR, "three", "git://server/project.git", standardProgressIndicator) //clone remote to HOME_DIR/three from git using the standard progress indicator | |
// Can also do: repo3.isFailure() //returns true if repo3 failed to init/open/clone | |
// And: repo1.addRemote("git://server2/project.git") //adds a new remote just for fun | |
val adept: Adept = new Adept(repo1, repo2, repo3) //a single instance that manages all repositories |
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
import java.io.File | |
case class EmscriptenCompilerException(filename: String, lineNo: Option[Int], colNo: Option[Int], msg: String) extends Exception | |
class EmscriptenCompiler(eccCompiler: String) { | |
private val compilerString = eccCompiler + " " | |
val ErrorLine = """(.*?):(\d+):(\d+): error: (.*?)""".r | |
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
import sbt._ | |
import sbt.Keys._ | |
import java.io.File | |
import play.Keys._ | |
import play.PlayExceptions._ | |
import play.PlaySourceGenerators | |
object EmscriptenKeys { | |
val eccFiles = taskKey[PathFinder]("C/C++ files to be compiled") | |
val eccCompiler = settingKey[String]("Path to Emscripten compiler") |
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
import sbt._ | |
import sbt.Keys._ | |
import java.io.File | |
import play.Keys._ | |
import play.PlayExceptions._ | |
import play.PlaySourceGenerators | |
object EmscriptenKeys { | |
val eccFiles = taskKey[PathFinder]("C/C++ files to be compiled") | |
val eccCompiler = settingKey[String]("Path to Emscripten compiler") |
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
import sbt._ | |
import sbt.Keys._ | |
import java.io.File | |
import play.Keys._ | |
import play.PlayExceptions._ | |
import play.PlaySourceGenerators | |
object EmscriptenKeys { | |
val eccFiles = taskKey[PathFinder]("C/C++ files to be compiled") | |
val eccCompiler = settingKey[String]("Path to Emscripten compiler") |
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
import sbt._ | |
import sbt.Keys._ | |
import play.Keys._ | |
import play.PlayExceptions._ | |
import play.PlaySourceGenerators | |
object EmscriptenKeys { | |
val eccFiles = taskKey[PathFinder]("C/C++ files to be compiled") | |
val eccCompiler = settingKey[String]("Path to Emscripten compiler") | |
} |
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
Akka Team Blog: | |
http://letitcrash.com/ | |
Shutdown Patterns in Akka 2: | |
http://letitcrash.com/post/30165507578/shutdown-patterns-in-akka-2 | |
An Akka 2 Terminator: | |
http://letitcrash.com/post/29773618510/an-akka-2-terminator |
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
val A10s210 = { | |
Variant("A", | |
attributes = Set( | |
Attribute("version", Set("1.0")), | |
Attribute("scala-binary-version", Set("2.10"))), | |
artifacts = Set( | |
Artifact("a10s210", Set(Configuration("compile")))), | |
configurations = Map( | |
Configuration("compile") -> Set( |
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
import sbt._ | |
import sbt.Keys._ | |
/** needed only till adept is released */ | |
object PlayPlugins extends Build { | |
val adeptProjectPath = "TODO" | |
lazy val adeptSbt = ProjectRef(file(), "adept-sbt") //TODO: remove this file | |
lazy val root = Project(id = "play-adept-project", | |
base = file("."), |