Artifact [e2ef651bfe]
Not logged in

Artifact e2ef651bfe3df3d702495b82c1e30440974c49b6:


/*
 * PWD.java --
 *
 * jacl/tests/exec/PWD.java
 *
 * Copyright (c) 1998 by Moses DeJong
 *
 * See the file "license.terms" for information on usage and redistribution
 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
 *
 * RCS: @(#) $Id: PWD.java,v 1.1 1999/05/10 04:09:04 dejong Exp $
 *
 */

package tests.exec;

public class PWD {
  public static void main(String[] argv) {
    String dirName = System.getProperty("user.dir");
    
    String os = System.getProperty("os.name");

    if (os.toLowerCase().startsWith("win")) {
      dirName = dirName.replace('\\', '/');
    }
    
    System.out.println( dirName );
    System.exit(0);
  }
}