Subversion Repositories DevTools

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6914 dpurdie 1
package com.erggroup.buildtool.util;
2
 
3
import java.io.File;
4
 
5
import java.net.InetAddress;
6
 
7
public class Config
8
{
9
  public Config()
10
  {
11
    String hostname;
12
    try
13
    {
14
      InetAddress local = InetAddress.getLocalHost();
15
      hostname = local.getHostName();
16
    }
17
    catch( Exception e )
18
    {
19
      // not fatal
20
      hostname = "unknown";
21
    }
22
    System.out.println(hostname);
23
 
24
    File cwd = new File(".");
25
    System.out.println( "Usable space " + cwd.getUsableSpace());
26
  }
27
 
28
  public static void main(String[] args)
29
  {
30
    new Config();
31
  }
32
}