src/Pure/System/Java_Ext_Dirs.java
author blanchet
Fri, 01 Jul 2011 15:53:38 +0200
changeset 43627 ecd4bb7a8bc0
parent 43541 a1ed0456b7e6
permissions -rw-r--r--
update documentation after "type_enc" renaming + fixed a few other out-of-date factlets
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
43518
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
     1
/*  Title:      Pure/System/Java_Ext_Dirs.java
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
     2
    Author:     Makarius
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
     3
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
     4
Augment Java extension directories.
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
     5
*/
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
     6
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
     7
package isabelle;
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
     8
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
     9
public class Java_Ext_Dirs
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
    10
{
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
    11
  public static void main(String [] args) {
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
    12
    StringBuilder s = new StringBuilder();
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
    13
    int i;
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
    14
    for (i = 0; i < args.length; i++) {
43541
a1ed0456b7e6 clarified java.ext.dirs: putting Isabelle extensions first makes it work miraculously even on Cygwin with Java in "C:\Program Files\..." (with spaces in file name);
wenzelm
parents: 43518
diff changeset
    15
      s.append(args[i]);
43518
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
    16
      s.append(System.getProperty("path.separator"));
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
    17
    }
43541
a1ed0456b7e6 clarified java.ext.dirs: putting Isabelle extensions first makes it work miraculously even on Cygwin with Java in "C:\Program Files\..." (with spaces in file name);
wenzelm
parents: 43518
diff changeset
    18
    s.append(System.getProperty("java.ext.dirs"));
43518
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
    19
    System.out.println(s.toString());
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
    20
  }
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
    21
}
7cad71ca9bcc augment Java extension directories;
wenzelm
parents:
diff changeset
    22