Attaching patch 1a, which tries to make everyone happier
The classpath for the junit targets will be set automatically, with the following preferences:
o if derby.junit.classpath is specified by the user, don't do anything
o if derby.junit.classpath is unspecified
o look for insane jars
o look for sane jars
o if either of them are found, set derby.junit.classpath to empty string and set derby.junit.test.jars to point to the directory with the jars
o if no jars are located, set derby.junit.classpath to the classes-directory
o additionally, ant will append the user's CLASSPATH environment variable to the junit classpath
I also added an informational printout telling which classpath is being used.
Patch ready for review, although it might be wise to see the outcome of the discussion under this issue and/or "Refactoring ant junit target to automatically set classpath" on derby-dev first.