comparison dwt/dwthelper/System.d @ 334:a4b331f75790

Quick fix
author John Reimer <terminal.node@gmail.com>
date Sun, 19 Oct 2008 21:41:55 -0700
parents 8235a17d9255
children 373b48b9eaf0
comparison
equal deleted inserted replaced
333:8235a17d9255 334:a4b331f75790
159 if (key[0..3] == "dwt") { 159 if (key[0..3] == "dwt") {
160 return ((p = key in localProperties) != null) ? *p : null; 160 return ((p = key in localProperties) != null) ? *p : null;
161 /* else get values for global system keys (environment) */ 161 /* else get values for global system keys (environment) */
162 } else { 162 } else {
163 switch( key ){ 163 switch( key ){
164 case "os.name": return tango.sys.Environment.get("OSTYPE"); 164 case "os.name": return Environment.get("OSTYPE");
165 case "user.name": return tango.sys.Environment.get("USER"); 165 case "user.name": return Environment.get("USER");
166 case "user.home": return tango.sys.Environment.get("HOME"); 166 case "user.home": return Environment.get("HOME");
167 case "user.dir" : return tango.sys.Environment.get("PWD"); 167 case "user.dir" : return Environment.get("PWD");
168 case "file.separator" : return FileConst.PathSeparatorString ; 168 case "file.separator" : return FileConst.PathSeparatorString ;
169 case "file.encoding" : return 169 case "file.encoding" : implMissing( __FILE__, __LINE__);
170 case "network.proxy_host" : implMissing( __FILE__, __LINE__);
171 case "network.proxy_port" : implMissing( __FILE__, __LINE__);
172
170 default: return null; 173 default: return null;
171 } 174 }
172 } 175 }
173 } 176 }
174 177