return null;
}
private JamClassLoader getJamLoader(File[] javaFiles, File[] classpath)
{
JamServiceFactory jf = JamServiceFactory.getInstance();
JamServiceParams params = jf.createServiceParams();
params.set14WarningsEnabled(false);
// BUGBUG(radup) This is here because the above doesn't do the trick
params.setShowWarnings(false);
// process the included sources
if (javaFiles!=null)
for (int i = 0; i < javaFiles.length; i++)
params.includeSourceFile(javaFiles[i]);
//params.setVerbose(DirectoryScanner.class);
// add the sourcepath and classpath, if specified
params.addClassLoader(this.getClass().getClassLoader());
if (classpath != null)
for (int i = 0; i < classpath.length; i++)
params.addClasspath(classpath[i]);
// create service, get classes, return compiler
JamService service;
try
{
service = jf.createService(params);
}
catch (IOException ioe)
{
error("Error when accessing .java files.", null);
return null;