throw new BuildException("'clientFiles' must be specified");
}
if (brokerFiles == null) {
throw new BuildException("'clientFiles' must be specified");
}
JamServiceFactory jamServiceFactory = JamServiceFactory.getInstance();
JamServiceParams serviceParams = jamServiceFactory.createServiceParams();
if (mToolpath != null) {
File[] tcp = path2files(mToolpath);
for (int i = 0; i < tcp.length; i++) {
serviceParams.addToolClasspath(tcp[i]);
}
}
if (mClasspath != null) {
File[] cp = path2files(mClasspath);
for (int i = 0; i < cp.length; i++) {
serviceParams.addClasspath(cp[i]);
}
}
JClass[] classes = null;
File propertiesFile = scenariosFile;
try {
if (srcDir != null) {
serviceParams.includeSourcePattern(path2files(srcDir), mIncludes);
JamService jam = jamServiceFactory.createService(serviceParams);
classes = jam.getAllClasses();
}
else {
// lets try load the properties file
classes = loadScenarioClasses();