File root = new File("./");
project.setBaseDir(root);
project.init();
AttributeCompiler commonsAttributesCompiler = new AttributeCompiler();
commonsAttributesCompiler.setProject(project);
//commonsAttributesCompiler.setSourcepathref("test");
String tempPath = "target/generated-commons-attributes-src";
commonsAttributesCompiler.setDestdir(new File(tempPath));
FileSet fileset = new FileSet();
fileset.setDir(new File(root.getPath() + File.separator + "test"));
String attributeClasses = testWildcards;
fileset.setIncludes(attributeClasses);
commonsAttributesCompiler.addFileset(fileset);
commonsAttributesCompiler.execute();
System.out.println("Compiling Java sources generated by Commons Attributes using Javac: requires tools.jar on Eclipse project classpath");
// We now have the generated Java source: compile it.
// This requires Javac on the source path
Javac javac = new Javac();