added interface for command-line option;
authorwenzelm
Sun, 06 Jan 2008 16:36:29 +0100
changeset 25850 dfca7b555e5c
parent 25849 e80056f00b07
child 25851 606850a6fc1a
added interface for command-line option;
lib/classes/isabelle/IsabelleProcess.java
--- a/lib/classes/isabelle/IsabelleProcess.java	Sun Jan 06 15:57:57 2008 +0100
+++ b/lib/classes/isabelle/IsabelleProcess.java	Sun Jan 06 16:36:29 2008 +0100
@@ -480,7 +480,7 @@
     /**
      * Creates Isabelle process with specified logic image.
      */
-    public IsabelleProcess(String logic) throws IsabelleProcessException
+    public IsabelleProcess(String [] options, String logic) throws IsabelleProcessException
     {
         ArrayList<String> cmdline = new ArrayList<String> ();
         String shell = null;
@@ -500,6 +500,9 @@
             cmdline.add("isabelle-process");
         }
         cmdline.add("-W");
+        if (options != null) {
+            for (String opt: options) cmdline.add(opt);
+        }
         if (logic != null) cmdline.add(logic);
 
         try {
@@ -534,6 +537,13 @@
     }
 
     /**
+     * Creates Isabelle process without options.
+     */
+    public IsabelleProcess(String logic) throws IsabelleProcessException {
+        this(null, logic);
+    }
+
+    /**
      * Creates Isabelle process with default logic image.
      */
     public IsabelleProcess() throws IsabelleProcessException {