| 148 | | switch( key ){ |
|---|
| 149 | | case "os.name": return "linux"; |
|---|
| 150 | | case "file.separator" : return "."; |
|---|
| 151 | | default: return null; |
|---|
| 152 | | } |
|---|
| 153 | | } |
|---|
| | 157 | /* Get values for local dwt specific keys */ |
|---|
| | 158 | String* p; |
|---|
| | 159 | if (key[0..3] == "dwt") { |
|---|
| | 160 | return ((p = key in localProperties) != null) ? *p : null; |
|---|
| | 161 | /* else get values for global system keys (environment) */ |
|---|
| | 162 | } else { |
|---|
| | 163 | switch( key ){ |
|---|
| | 164 | case "os.name": return "linux"; |
|---|
| | 165 | case "user.name": return ""; |
|---|
| | 166 | case "user.home": return ""; |
|---|
| | 167 | case "user.dir" : return ""; |
|---|
| | 168 | case "file.separator" : return FileConst.PathSeparatorString ; |
|---|
| | 169 | default: return null; |
|---|
| | 170 | } |
|---|
| | 171 | } |
|---|
| | 172 | } |
|---|
| | 173 | |
|---|
| | 174 | public static void setProperty ( String key, String value ) { |
|---|
| | 175 | /* set property for local dwt keys */ |
|---|
| | 176 | if (key[0..3] == "dwt") { |
|---|
| | 177 | if (key !is null && value !is null) |
|---|
| | 178 | localProperties[ key ] = value; |
|---|
| | 179 | /* else set properties for global system keys (environment) */ |
|---|
| | 180 | } else { |
|---|
| | 181 | |
|---|
| | 182 | } |
|---|
| | 183 | |
|---|
| | 184 | } |
|---|
| | 185 | |
|---|
| | 186 | static class Output { |
|---|
| | 187 | public void println( String str ){ |
|---|
| | 188 | implMissing( __FILE__, __LINE__ ); |
|---|
| | 189 | } |
|---|
| | 190 | } |
|---|
| | 191 | |
|---|
| | 192 | private static Output err__; |
|---|
| | 193 | public static Output err(){ |
|---|
| | 194 | if( err__ is null ){ |
|---|
| | 195 | err__ = new Output(); |
|---|
| | 196 | } |
|---|
| | 197 | return err__; |
|---|
| | 198 | } |
|---|
| | 199 | private static Output out__; |
|---|
| | 200 | public static Output out_(){ |
|---|
| | 201 | if( out__ is null ){ |
|---|
| | 202 | out__ = new Output(); |
|---|
| | 203 | } |
|---|
| | 204 | return out__; |
|---|
| | 205 | } |
|---|
| | 206 | |
|---|
| | 207 | private static String[String] localProperties; |
|---|