PageRenderTime 38ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. <?xml version="1.0" ?>
  2. <!DOCTYPE COMMANDO SYSTEM "commando.dtd">
  3. <COMMANDO>
  4. <UI>
  5. <CAPTION LABEL="Application settings">
  6. <ENTRY LABEL="Script Name" VARNAME="scriptname"
  7. EVAL="buffer.getPath()" />
  8. <ENTRY LABEL="Application parameters" VARNAME="args" />
  9. </CAPTION>
  10. </UI>
  11. <COMMANDS>
  12. <!-- Change to dir of current open buffer -->
  13. <COMMAND SHELL="System" CONFIRM="FALSE">
  14. fSep = java.lang.System.getProperties().getProperty("file.separator");
  15. buf = new StringBuffer("cd ");
  16. buf.append(buffer.getPath().substring(0, buffer.getPath().lastIndexOf(fSep)));
  17. buf.append(fSep);
  18. buf.toString();
  19. </COMMAND>
  20. <COMMAND SHELL="System" CONFIRM="FALSE">
  21. buf = new StringBuffer();
  22. buf.append("perl " + scriptname);
  23. if(!args.equals(""))
  24. {
  25. buf.append(' ');
  26. buf.append(args);
  27. }
  28. // return value
  29. buf.toString();
  30. </COMMAND>
  31. </COMMANDS>
  32. </COMMANDO>