I have a .war file that represents a complex web application. It works that way perfectly. But one of the classes in WEB-INF/classes also has a main() that is a small helper utility. We'd like to be able to run that utility from the command line. It seems to me there ought to be a way to form a classpath out of all of the jars in WEB-INF/lib inside the war, plus WEB-INF/classes.
It just seems to me like this is a problem that has to have been solved before.
Worst case, I can unpack the war into a temp directory, but I'd really rather not.