org.apache.maven.plugin.eclipse.writers.AbstractEclipseResourceWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-eclipse-plugin Show documentation
Show all versions of maven-eclipse-plugin Show documentation
The Eclipse Plugin is used to generate Eclipse IDE files (.project, .classpath and the .settings folder)
from a POM.
/**
*
*/
package org.apache.maven.plugin.eclipse.writers;
import java.io.File;
import org.apache.maven.plugin.ide.IdeDependency;
import org.apache.maven.plugin.logging.Log;
import org.apache.maven.project.MavenProject;
/**
* Common base class for all Eclipse Writers.
*
* @author Rahul Thakur
* @version $Id: AbstractEclipseResourceWriter.java 390686 2006-04-01 15:39:33Z fgiust $
*/
public abstract class AbstractEclipseResourceWriter
{
private Log log;
private File eclipseProjectDir;
private MavenProject project;
protected IdeDependency[] deps;
/**
* @param log
* @param eclipseProjectDir
* @param project
*/
public AbstractEclipseResourceWriter( Log log, File eclipseProjectDir, MavenProject project, IdeDependency[] deps )
{
this.log = log;
this.eclipseProjectDir = eclipseProjectDir;
this.project = project;
this.deps = deps;
}
/**
* @return the eclipseProjectDir
*/
public File getEclipseProjectDirectory()
{
return eclipseProjectDir;
}
/**
* @return the log
*/
public Log getLog()
{
return log;
}
/**
* @return the project
*/
public MavenProject getProject()
{
return project;
}
}