#DOCUMENTATION by stefan
authorStefan Vogel <sv@exept.de>
Thu, 10 Jan 2019 19:14:23 +0100
changeset 23598 8e7bb6b5d696
parent 23597 72e6a6ce055f
child 23599 0f7f4466f1af
#DOCUMENTATION by stefan class: AbstractOperatingSystem class added: #expandEnvironmentStrings: as subclassResponsibility
AbstractOperatingSystem.st
--- a/AbstractOperatingSystem.st	Wed Jan 09 18:23:52 2019 +0100
+++ b/AbstractOperatingSystem.st	Thu Jan 10 19:14:23 2019 +0100
@@ -1176,6 +1176,7 @@
     "Created: / 12.11.1998 / 14:39:20 / cg"
 ! !
 
+
 !AbstractOperatingSystem class methodsFor:'executing OS commands-public'!
 
 executeCommand:aCommandString
@@ -4299,6 +4300,16 @@
 
 !AbstractOperatingSystem class methodsFor:'os queries'!
 
+expandEnvironmentStrings:aString
+    "expand the environmentStrings (e.g. $JAVA_HOME or ${JAVA_HOME}) in aString.
+     If the variable does not exist, keep the original text.
+     Amswer the expanded string."
+
+    ^ self subclassResponsibility
+
+    "Modified (comment): / 10-01-2019 / 19:12:20 / Stefan Vogel"
+!
+
 getCCDefine
     <resource: #obsolete>