use of org.apache.tools.ant.Project in project cuke4duke by cucumber.
the class AbstractJRubyMojo method getProject.
protected Project getProject() throws MojoExecutionException {
Project project = new Project();
project.setBaseDir(mavenProject.getBasedir());
project.setProperty("jruby.home", jrubyHome().getAbsolutePath());
project.addBuildListener(new LogAdapter());
Path jrubyClasspath = new Path(project);
project.addReference("jruby.classpath", jrubyClasspath);
try {
append(jrubyClasspath, testClasspathElements);
append(jrubyClasspath, compileClasspathElements);
append(jrubyClasspath, pluginArtifacts);
return project;
} catch (DependencyResolutionRequiredException e) {
throw new MojoExecutionException("error resolving dependencies", e);
}
}
Aggregations