use of org.apache.tools.ant.ProjectHelper in project gradle by gradle.
the class AntUtil method createProject.
/**
* @return Factory method to create new Project instances
*/
public static Project createProject() {
final Project project = new Project();
final ProjectHelper helper = ProjectHelper.getProjectHelper();
project.addReference(ProjectHelper.PROJECTHELPER_REFERENCE, helper);
// import checks that stack is not empty
helper.getImportStack().addElement("AntBuilder");
project.addBuildListener(new AntLoggingAdapter());
project.init();
project.getBaseDir();
return project;
}
Aggregations