Changeset 271


Ignore:
Timestamp:
11/19/02 00:25:06 (20 years ago)
Author:
piso
Message:

runStartupScript()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/BeanShell.java

    r2 r271  
    33 *
    44 * Copyright (C) 2002 Peter Graves
    5  * $Id: BeanShell.java,v 1.1.1.1 2002-09-24 16:08:39 piso Exp $
     5 * $Id: BeanShell.java,v 1.2 2002-11-19 00:25:06 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    2929public final class BeanShell
    3030{
    31     public static void runStartupScript()
     31    public static void runStartupScript(File file)
    3232    {
    33         File file = Editor.getStartupScript();
    34         if (file != null && file.isFile()) {
    35             Interpreter interpreter = getInterpreter();
    36             try {
    37                 Log.info("loading ".concat(file.canonicalPath()));
    38                 interpreter.source(file.canonicalPath());
    39             }
    40             catch (Throwable t) {
    41                 Log.error(t);
    42             }
     33        Interpreter interpreter = getInterpreter();
     34        try {
     35            interpreter.source(file.canonicalPath());
     36        }
     37        catch (Throwable t) {
     38            Log.error(t);
    4339        }
    4440    }
Note: See TracChangeset for help on using the changeset viewer.