]> git.argeo.org Git - lgpl/argeo-commons.git/blob - argeo/OperatingSystem.java
Prepare next development cycle
[lgpl/argeo-commons.git] / argeo / OperatingSystem.java
1 package org.argeo;
2
3 /** The current operating system. */
4 public class OperatingSystem {
5 public final static int NIX = 1;
6 public final static int WINDOWS = 2;
7 public final static int SOLARIS = 3;
8
9 public final static int os;
10 static {
11 String osName = System.getProperty("os.name");
12 if (osName.startsWith("Win"))
13 os = WINDOWS;
14 else if (osName.startsWith("Solaris"))
15 os = SOLARIS;
16 else
17 os = NIX;
18 }
19
20 }