consoleLogger.setErrorPrintStream(System.err);
consoleLogger.setOutputPrintStream(System.out);
consoleLogger.setMessageOutputLevel(Project.MSG_INFO);
project.addBuildListener(consoleLogger);
Path path = new Path(project);
File[] jars = FileUtils.newFile(activeMqHome + "\\lib").listFiles(new FilenameWildcardFilter("*.jar"));
path.add(new Path(project, FileUtils.newFile(activeMqHome, "\\conf").getAbsolutePath()));
for (int i = 0; i < jars.length; i++)
{
path.add(new Path(project, jars[i].getAbsolutePath()));
}
jars = FileUtils.newFile(activeMqHome + "\\lib\\optional").listFiles(new FilenameWildcardFilter("*.jar"));
for (int i = 0; i < jars.length; i++)
{
path.add(new Path(project, jars[i].getAbsolutePath()));
}
final JavaTask java = new JavaTask();