title: Running stand-alone groovy script from netbeans
body: <p>I have bunch of <code>groovy</code> scripts in various directories (not necessarily netbeans/maven project dirs). I have been using <code>Notepad++</code> and <code>Netbeans</code> to create/edit these scripts. I <code>favorite</code> the directories containing scripts in NB so that I can open it in NB (from the <code>favorites</code> tree) without having to have a <code>java project</code>. I usually fire-up <code>cygwin</code> thorugh <code>putty-cyg</code> to execute/test these scripts. Netbeans offers a decent <code>terminal</code> as well within IDE where i can issue commands without <code>ALT-TAB</code>'ing the IDE and Putty-Cyg. All is working nicely.</p>
  
  <p>Just thought how nice it would be if I could have a <code>Run Script</code> in the context menu where I can run a script (and optionally it may ask for scripts arguments too). This would save a lot of <code>ALT-TAB</code>ing and <code>cd</code>'ing into scripts directory and typing <code>groovy scriptname.groovy</code>.</p>
  
  <ol>
  <li>Can anyone suggest any plugin that allows me to do so? </li>
  <li>If I have to write my own plugin for that same task, how should I start? (I checked out nb plugin/platform docs, its overwhelming). </li>
  <li>If someone is in same situation as I, feel free to share experiences.</li>
  </ol>
  
  <p>pros/cons of NPP : fast / no auto-complete, its not IDE, no lang support for groovy</p>
  
  <p>pros/cons of NB :  everything at one place, lang support, somewhat auto-completes for groovy/ bit sluggish, takes time to start up, you must be in java (ant/maven) project directory to reap most of IDE benefits</p>
  
  <p>Eclipse support is okay but it does not do what i am asking above. I am downloading IDEA  community edition to check its support. (UPDATE: Nope it doesn't. I tried it)</p>