ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/owl/trunk/tools/Machine.java
Revision: 7
Committed: Mon Jan 23 09:19:47 2006 UTC (18 years, 8 months ago) by duarte
File size: 583 byte(s)
Log Message:
Moved everything to subdir tools, so that we keep the tools name for the package. Also changed the package name in the files to tools. To work with it please check out only file:///.../svn/tools/trunk/tools
Line User Rev File contents
1 duarte 7 package tools;
2    
3     import tools.*;
4     import java.io.*;
5     import java.net.*;
6    
7     public class Machine {
8    
9     public static String getClient() {
10    
11     String client = "";
12    
13     try {
14     client = InetAddress.getLocalHost().getHostName();
15     } catch (Exception e) {
16     System.out.println(e);
17     }
18    
19     return client;
20    
21     }
22    
23     public static String getOSArch() {
24    
25     return (System.getProperty("os.arch"));
26    
27     }
28    
29     public static String getOSName() {
30    
31     return (System.getProperty("os.name"));
32    
33     }
34    
35     public static String getOSver() {
36    
37     return (System.getProperty("os.version"));
38    
39     }
40    
41     }
42    

Properties

Name Value
svn:executable *