-
-
Save ChristianBagley/47650913f634ca8b2605 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * rp5.bsh by monkstone 18 December 2013 | |
| * A jedit bean shell macro, to load environment, and call | |
| * rp5 commando menu | |
| * | |
| * You must edit JAVA_HOME/GEM_HOME/GEM_PATH to match your system | |
| * | |
| */ | |
| setenv("JAVA_HOME", "/opt/jdk1.8.0"); | |
| setenv("GEM_HOME", "/home/tux/.gem/ruby/2.0.0"); | |
| setenv("GEM_PATH", "/home/tux/.gem/ruby/2.0.0"); | |
| setenv("JRUBY_OPTS", "--2.0"); | |
| new console.commando.CommandoDialog(view,"commando.rp5"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <!DOCTYPE COMMANDO SYSTEM "commando.dtd"> | |
| <!-- Monkstone, 2013-December-16 jedit commando file for ruby-processing > 2.0.12 --> | |
| <COMMANDO> | |
| <UI> | |
| <CAPTION LABEL="Run"> | |
| <FILE_ENTRY LABEL="ruby file" VARNAME="file" EVAL="buffer.getName()"/> | |
| </CAPTION> | |
| <CAPTION LABEL="Path to rp5"> | |
| <ENTRY LABEL="path" VARNAME="rp5path" DEFAULT=""/> | |
| </CAPTION> | |
| <CAPTION LABEL="Choose Run/Watch/Create/App"> | |
| <CHOICE LABEL="Select" VARNAME="type" DEFAULT="run" > | |
| <OPTION LABEL="run" VALUE="run"/> | |
| <OPTION LABEL="watch" VALUE="watch"/> | |
| <OPTION LABEL="create" VALUE="create"/> | |
| <OPTION LABEL="export app" VALUE="app"/> | |
| <OPTION LABEL="export applet" VALUE="applet"/> | |
| </CHOICE> | |
| </CAPTION> | |
| <CAPTION LABEL="JRuby Opt"> | |
| <TOGGLE LABEL="jruby-complete" VARNAME="jruby" DEFAULT="FALSE"/> | |
| </CAPTION> | |
| </UI> | |
| <COMMANDS> | |
| <COMMAND SHELL="System" CONFIRM="FALSE"> | |
| <!-- cd to working dir --> | |
| buf = new StringBuilder("cd "); | |
| buf.append(MiscUtilities.getParentOfPath(buffer.getPath())); | |
| buf.toString(); | |
| </COMMAND> | |
| <COMMAND SHELL="System" CONFIRM="FALSE"> | |
| buf = new StringBuilder(rp5path); | |
| buf.append("rp5 "); | |
| if (jruby){ | |
| buf.append("--nojruby "); | |
| } | |
| buf.append(type); | |
| buf.append(" "); | |
| switch(type){ | |
| case "run": | |
| case "watch": | |
| buf.append(file); | |
| break; | |
| } | |
| buf.toString(); | |
| </COMMAND> | |
| </COMMANDS> | |
| </COMMANDO> | |
| 28,0-1 13% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment