Some minor updates

cvs 0.71
Slava Pestov 2005-01-02 21:31:43 +00:00
parent c186fd7b48
commit d0d1b3d4ec
2 changed files with 15 additions and 7 deletions

View File

@ -108,17 +108,25 @@ public class FactorPlugin extends EditPlugin
try
{
String exePath = jEdit.getProperty(
"factor.external.program");
String imagePath = jEdit.getProperty(
"factor.external.image");
List args = new ArrayList();
args.add(jEdit.getProperty("factor.external.program"));
args.add(jEdit.getProperty("factor.external.image"));
args.add(exePath);
args.add(imagePath);
args.add("-shell=telnet");
args.add("-telnetd-port=" + PORT);
String[] extraArgs = jEdit.getProperty(
"factor.external.args")
.split(" ");
addNonEmpty(extraArgs,args);
process = Runtime.getRuntime().exec((String[])args.toArray(
new String[args.size()]));
process = Runtime.getRuntime().exec(
(String[])args.toArray(
new String[args.size()]),
null,
new File(MiscUtilities
.getParentOfPath(imagePath)));
external = new ExternalFactor(PORT);
}

View File

@ -105,9 +105,9 @@ global [
" (OS: " write os write
" CPU: " write cpu write
")" print
"Copyright (C) 2003, 2004 Slava Pestov" print
"Copyright (C) 2004 Chris Double" print
"Copyright (C) 2004 Mackenzie Straight" print
"Copyright (C) 2003, 2005 Slava Pestov" print
"Copyright (C) 2004, 2005 Chris Double" print
"Copyright (C) 2004, 2005 Mackenzie Straight" print
"Type ``exit'' to exit, ``help'' for help." print
terpri
room.