All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.xtend.maven.XtendTestInstallDebugInfo Maven / Gradle / Ivy

The newest version!
package org.eclipse.xtend.maven;

import java.io.File;
import java.util.List;

import com.google.common.collect.Multimap;

/**
 * Goal which installs debug information into Java class files that have been generated from Xtend.
 * 
 * @author Moritz Eysholdt - Initial contribution and API
 * @goal xtend-test-install-debug-info
 * @phase process-test-classes
 * @requiresDependencyResolution compile
 */
public class XtendTestInstallDebugInfo extends AbstractXtendInstallDebugInfoMojo {
	@Override
	protected void internalExecute() {
		List compileSourceRoots = project.getTestCompileSourceRoots();
		String outputDirectory = project.getBuild().getTestOutputDirectory();
		Multimap trace2class = createTraceToClassFileMap(compileSourceRoots, outputDirectory);
		logStatus(outputDirectory, trace2class);
		installTraces(trace2class);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy