diff options
author | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-04-04 12:09:06 +0000 |
---|---|---|
committer | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-04-04 12:09:06 +0000 |
commit | cb9f5470c9a9dabdc334b234c9c6b6fd17237198 (patch) | |
tree | d0e48d83f2a9e916c9f682160920c621dbf457d6 /src/library/scala/util/Properties.scala | |
parent | 0cda1dec3f2ec23c181b17dbb0f59299bab89430 (diff) | |
download | scala-cb9f5470c9a9dabdc334b234c9c6b6fd17237198.tar.gz scala-cb9f5470c9a9dabdc334b234c9c6b6fd17237198.tar.bz2 scala-cb9f5470c9a9dabdc334b234c9c6b6fd17237198.zip |
The great library reorg!
The standard library will now be laid out approximately like this
library/scala
/jvm/scala
/jvm/jvm1.4/scala
/jvm/jvm1.5/scala
/jvm/android/scala
/jvm/cldc/scala
/dotnet/scala
To build the standard library for a given target you start by copying
the root library/scala tree to a staging area, then move down in the
hierarchy copying the nested "scala" trees on top in the staging area.
So if you wanted to build for cldc, for example, you would do something
like the following:
rsync -avz library/scala staging/
rsync -avz library/scala/jvm/scala staging/
rsync -avz library/scala/jvm/cldc/scala staging/
The ant build files will be updated to do this for you automagically,
and there will soon be shell script to do this if you want to compile
some parts of the standard library manually.
Diffstat (limited to 'src/library/scala/util/Properties.scala')
-rw-r--r-- | src/library/scala/util/Properties.scala | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/library/scala/util/Properties.scala b/src/library/scala/util/Properties.scala deleted file mode 100644 index 2fa885dc3a..0000000000 --- a/src/library/scala/util/Properties.scala +++ /dev/null @@ -1,57 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2006-2008, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | http://scala-lang.org/ ** -** /____/\___/_/ |_/____/_/ | | ** -** |/ ** -\* */ - -// $Id$ - -package scala.util - -/** A utility to load the library properties from a Java properties file - * included in the jar. - * - * @author Stephane Micheloud - */ -object Properties { - - /** The name of the properties file */ - private val propFilename = "/library.properties" - - /** The loaded properties */ - private val props = { - val props = new java.util.Properties - val stream = classOf[Application].getResourceAsStream(propFilename) - if (stream != null) - props.load(stream) - props - } - - /** The version number of the jar this was loaded from, or - * "(unknown)" if it cannot be determined. - */ - val versionString: String = { - val defaultString = "(unknown)" - "version " + props.getProperty("version.number") - } - - val copyrightString: String = { - val defaultString = "(c) 2002-2008 LAMP/EPFL" - props.getProperty("copyright.string", defaultString) - } - - val encodingString: String = { - val defaultString = "UTF8" //"ISO-8859-1" - props.getProperty("file.encoding", defaultString) - } - - private val writer = new java.io.PrintWriter(Console.err, true) - - val versionMsg = "Scala library " + versionString + " -- " + copyrightString - - def main(args: Array[String]) { - writer.println(versionMsg) - } -} |