Subversion Repositories DevTools

Rev

Blame | Last modification | View Log | RSS feed

package com.erggroup.buildtool.util;

import java.io.File;

import java.net.InetAddress;

public class Config
{
  public Config()
  {
    String hostname;
    try
    {
      InetAddress local = InetAddress.getLocalHost();
      hostname = local.getHostName();
    }
    catch( Exception e )
    {
      // not fatal
      hostname = "unknown";
    }
    System.out.println(hostname);
    
    File cwd = new File(".");
    System.out.println( "Usable space " + cwd.getUsableSpace());
  }

  public static void main(String[] args)
  {
    new Config();
  }
}