MiniMaven: fall back to System.err if no err was specified

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add a 'script engine' for Java

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Test the Java "script engine"

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Refactor the test for the Java 'script engine'

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Java 'script engine': optionally search for pom.xml file

When the specified file is not a pom.xml file, let's look for it by
searching the directory and its parent directories.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Java 'script engine': try to execute the current class

If the file specified via javax.script.filename refers to the sources of a
Java class, let's execute that even if the pom.xml specifies a different
main class.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Java 'script engine': support eval(Reader)

When no filename was given, we need to write a temporary file. Let's
try our best to figure out what file name to use and whip up a
makeshift project configuration.

Incidentally, we now support stand-alone .java files, too.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Java 'script engine': flush compile errors

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Java 'script engine': fix two resource leaks

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Java 'script engine': prefer to launch the class via CommandService

... but only if it is a Command in the first place, of course. If it is
not, we fall back to executing the main() method.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Java 'script engine': turn off 'verbose' and 'debug' mode by default

You can still switch them on by setting the properties 'verbose' or
'debug' to true.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ScriptService: add a method to identify compiled-only languages

Languages such as Java do not support running via eval(Reader). We
need to be able to tell whether that would fail before trying.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ScriptService: add canHandleFile(String fileName)

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add the ij-ui-script-editor project

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
First code dump of the Fiji Script Editor

This dump is intentionally non-compiling, to offer a better base for
concurrent development of the Script Editor.

The base is fiji.git's commit fc077481.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Script Editor: remove now-obsolete classes

These classes were needed in the context of Fiji and/or IJ1.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Script Editor: the classes are now in package imagej.script.editor

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Script Editor: add copyright headers

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Script Editor: remove the AutoComplete dependency

It never worked properly.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Script Editor: remove dysfunctional debugging support

Not even the first alpha version of it was ever completed...

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>