diff options
author | moix <moix@epfl.ch> | 2010-08-19 15:06:34 +0000 |
---|---|---|
committer | moix <moix@epfl.ch> | 2010-08-19 15:06:34 +0000 |
commit | 8bef04a234b9c9005504a6fcd3f4f3dd10973ff8 (patch) | |
tree | a83201e33650bc57094d8f07f1cd861496bf65b4 /project/build/BuildInfoEnvironment.scala | |
parent | 11f2760b59da21f6f65d94a87430c56cbc5d1609 (diff) | |
download | scala-8bef04a234b9c9005504a6fcd3f4f3dd10973ff8.tar.gz scala-8bef04a234b9c9005504a6fcd3f4f3dd10973ff8.tar.bz2 scala-8bef04a234b9c9005504a6fcd3f4f3dd10973ff8.zip |
Extending sbt capabilities :
- building continuation plugin
- building and replacing fjgb, msil and forkjoin
- building and replacing starr
- layer cleaning tasks
Diffstat (limited to 'project/build/BuildInfoEnvironment.scala')
-rw-r--r-- | project/build/BuildInfoEnvironment.scala | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/project/build/BuildInfoEnvironment.scala b/project/build/BuildInfoEnvironment.scala new file mode 100644 index 0000000000..682b8af5da --- /dev/null +++ b/project/build/BuildInfoEnvironment.scala @@ -0,0 +1,21 @@ +import sbt._ +trait BuildInfoEnvironment{ + self : Project => + def buildInfoEnvironmentLocation:Path + /** + * Environment for storing properties that + * 1) need to be saved across sbt session + * 2) Are local to a layer + * Used to save the last version of the compiler used to build the layer (for discarding it's product if necessary) + */ + lazy val layerEnvironment = new BasicEnvironment { + // use the project's Logger for any properties-related logging + def log = self.log + + // the properties file will be read/stored + def envBackingPath = buildInfoEnvironmentLocation + // define some properties + lazy val lastCompilerVersion:Property[String] = propertyOptional[String]("") + } + +} |