Make ClassPathScanner optionally work with class directories

IDEA runs tests from class directories rather than JARs. The
ClassPathScanner only works for JARs and so tests that rely on
the ClassPathScanner do not work within IDEA. This adds a system
property vogar-scan-directories-for-test which when set to true
will cause the ClassPathScanner to handle class directories.

Bug: 27940141
Change-Id: Ia1a09e1c20fc11c1389ac524570e4a986cd7cacb
2 files changed