/bundles/plugins-trunk/Console/console/commands/perl.xml
XML | 41 lines | 31 code | 9 blank | 1 comment | 0 complexity | 07811ab85039fc1642371bc074022f24 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
- <?xml version="1.0" ?>
- <!DOCTYPE COMMANDO SYSTEM "commando.dtd">
- <COMMANDO>
- <UI>
- <CAPTION LABEL="Application settings">
- <ENTRY LABEL="Script Name" VARNAME="scriptname"
- EVAL="buffer.getPath()" />
-
- <ENTRY LABEL="Application parameters" VARNAME="args" />
- </CAPTION>
- </UI>
- <COMMANDS>
- <!-- Change to dir of current open buffer -->
- <COMMAND SHELL="System" CONFIRM="FALSE">
- fSep = java.lang.System.getProperties().getProperty("file.separator");
- buf = new StringBuffer("cd ");
- buf.append(buffer.getPath().substring(0, buffer.getPath().lastIndexOf(fSep)));
- buf.append(fSep);
- buf.toString();
- </COMMAND>
- <COMMAND SHELL="System" CONFIRM="FALSE">
- buf = new StringBuffer();
- buf.append("perl " + scriptname);
- if(!args.equals(""))
- {
- buf.append(' ');
- buf.append(args);
- }
- // return value
- buf.toString();
- </COMMAND>
- </COMMANDS>
- </COMMANDO>