@@ -67,7 +67,7 @@ private[scala] trait PropertiesTrait {
67
67
* it is an RC, Beta, etc. or was built from source, or if the version
68
68
* cannot be read.
69
69
*/
70
- val releaseVersion =
70
+ val releaseVersion =
71
71
for {
72
72
v <- scalaPropOrNone(" maven.version.number" )
73
73
if ! (v endsWith " -SNAPSHOT" )
@@ -81,7 +81,7 @@ private[scala] trait PropertiesTrait {
81
81
* @return Some(version) if this is a non-final version, None if this
82
82
* is a final release or the version cannot be read.
83
83
*/
84
- val developmentVersion =
84
+ val developmentVersion =
85
85
for {
86
86
v <- scalaPropOrNone(" maven.version.number" )
87
87
if v endsWith " -SNAPSHOT"
@@ -109,8 +109,7 @@ private[scala] trait PropertiesTrait {
109
109
*/
110
110
def lineSeparator = propOrElse(" line.separator" , " \n " )
111
111
112
- /** Various well-known properties.
113
- */
112
+ /* Various well-known properties. */
114
113
def javaClassPath = propOrEmpty(" java.class.path" )
115
114
def javaHome = propOrEmpty(" java.home" )
116
115
def javaVendor = propOrEmpty(" java.vendor" )
@@ -126,10 +125,11 @@ private[scala] trait PropertiesTrait {
126
125
def userHome = propOrEmpty(" user.home" )
127
126
def userName = propOrEmpty(" user.name" )
128
127
129
- /** Some derived values.
130
- */
128
+ /* Some derived values. */
129
+ /** Returns `true` iff the underlying operating system is a version of Microsoft Windows. */
131
130
def isWin = osName startsWith " Windows"
132
- def isMac = javaVendor startsWith " Apple"
131
+ /** Returns `true` iff the underlying operating system is a version of Apple Mac OSX. */
132
+ def isMac = osName contains " OS X" // See developer.apple.com/library/mac/#technotes/tn2002/tn2110
133
133
134
134
def versionMsg = " Scala %s %s -- %s" .format(propCategory, versionString, copyrightString)
135
135
def scalaCmd = if (isWin) " scala.bat" else " scala"
0 commit comments