ImageJ launcher (Windows): introduce win_error() for debugging

On Windows, stderr is no use when debugging why the console does not work.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ImageJ launcher (Windows): enforce console output upon error()

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ImageJ launcher (Windows): make console handles inheritable

This helps when we fall back to the system Java executable.
To the same end, we also must not call FreeConsole().

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ImageJ launcher (Windows): fall back to java.exe when console was asked for

... instead of javaw.exe which does not attach to a console.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ImageJ launcher (Windows): use CreateProcess() to call system Java

The POSIX function execvp() is convenient but does not allow us to keep a
console open after java.exe exited.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Weka Segmentation: removed debug messages and images.
Fix ImageJ launcher compilation on non-Windows

The call to the Windows-only function open_win_console() wanted to be
inside the #ifdef WIN32 block, of course...

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ready-for-upload: also respect Maven's src/main/resources/ directory

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ImageJ-other: hardcode jars/fake.jar for --build

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Build.sh: try harder to call Fiji Build

If ./ImageJ gives up, try precompiled/ImageJ-<platform>. If that
gives up, fall back to system JavaC.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Build.sh: try hard to determine JAVA_HOME

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Build.sh: do not trust precompiled/fake.jar

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Fix group ids in VIB-lib's pom.xml file

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Finally get rid of the Fake class in the default package

This class was there only for backwarts-compatibility and should not
be necessary at all anymore.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
MiniMaven: make sure that ij.dir is set

... even if MiniMaven.class does not live in a .jar.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
SubFake (MiniMaven): remember POMs once they are parsed

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
MiniMaven: findPOM() requires explicit downloadAutomatically parameter

In some cases it might be desirable to be able to find a POM without
defaulting to downloading it, even when MiniMaven's downloadAutomatically
field was set to true.

For example, in the next commit we will add the ability to fall back to
reading the parent directory's pom.xml if the parent pom was not yet
parsed.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
MiniMaven: look at ../pom.xml if the parent pom has not been parsed yet

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
MiniMaven: cache POM implicitly when it was made using fakePOM()

We already cache it when it was made using parse().

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
MiniMaven: no need to walk the hierarchy when looking for cached POMs

... since we cached them anyway.

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