'nr': a batch script utility for NetRexx & Java

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

'nr': a batch script utility for NetRexx & Java

Anthony B. Coates
Now that NetRexx 1.151 has been released, I would like to announce a small
utility that works with 1.151: 'nr', a batch script utility.

NetRexx is a great language for writing batch scripts, just as Rexx is.
However, unlike Rexx, NetRexx programs have to be compiled first.  While you can
use the "-run" parameter with "nrc", it wasn't exactly what I needed.  So I
wrote 'nr', a compiling classloader.  When you run a Java class file with 'nr',
it checks for matching source files (currently NetRexx or Java).  If the class
file doesn't exist, or if the source is newer than the class file, it compiles
it on-the-fly before loading it.  No need to worry about calling a compiler, and
no compilation overhead the 2nd or 3rd time (etc.) that you run your script.

If this sounds interesting to you, have a look at

http://www.theoffice.net/abcoates/NetRexx/nr/

You can download a compiled version, or the NetRexx sources too, if you are so
inclined.  Note that 'nr' supports pluggable compilers, so it can work with
anything that creates Java class files.  As with all such things, no warranties
of any kind, "caveat emptor", etc.

        Cheers,
                        Tony.

** Anthony B. Coates
** Software Engineer (Java).  This is a 100% Pure Java e-mail.
** <mailto:[hidden email]>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe from this mailing list ( ibm-netrexx ), please send a note to
[hidden email]
with the following message in the body of the note
unsubscribe ibm-netrexx <e-mail address>