/* * Copyright 2001-2005 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.maven.plugin.eclipse.writers; import java.io.File; import java.util.List; import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.plugin.eclipse.EclipseSourceDir; import org.apache.maven.plugin.ide.IdeDependency; import org.apache.maven.project.MavenProject; /** * @author Fabrizio Giustina * @version $Id: EclipseWriterConfig.java 472126 2006-11-07 14:34:59Z kenney $ */ public class EclipseWriterConfig { /** * The maven project. */ private MavenProject project; /** * Eclipse project dir. */ private File eclipseProjectDirectory; /** * The name of the project in eclipse. */ private String eclipseProjectName; /** * Base project dir. */ private File projectBaseDir; /** * List of IDE dependencies. */ private IdeDependency[] deps; /** * Source directories. */ private EclipseSourceDir[] sourceDirs; /** * Local maven repo. */ private ArtifactRepository localRepository; /** * Build output directory for eclipse. */ private File buildOutputDirectory; /** * Manifest file. */ private File manifestFile; /** * PDE mode. */ private boolean pde; /** * Project natures. */ private List projectnatures; /** * Build commands. * * List<BuildCommand> */ private List buildCommands; /** * Classpath containers. */ private List classpathContainers; /** * AJDT weave dependencies. */ private IdeDependency[] ajdtWeaveDeps; /** * Aspectj libraries. */ private IdeDependency[] aspectjDeps; /** * Getter for deps. * @return Returns the deps. */ public IdeDependency[] getDeps() { return this.deps; } /** * Setter for deps. * @param deps The deps to set. */ public void setDeps( IdeDependency[] deps ) { this.deps = deps; } /** * Returns the ajdtWeaveDeps. * @return the ajdtWeaveDeps. */ public IdeDependency[] getAjdtWeaveDeps() { return ajdtWeaveDeps; } /** * Sets the ajdtWeaveDeps. * @param ajdtWeaveDeps the ajdtWeaveDeps. */ public void setAjdtWeaveDeps( IdeDependency[] ajdtWeaveDeps ) { this.ajdtWeaveDeps = ajdtWeaveDeps; } /** * Returns the aspectjDeps. * @return the aspectjDeps. */ public IdeDependency[] getAspectjDeps() { return aspectjDeps; } /** * Sets the aspectjDeps. * @param aspectjDeps the aspectjDeps. */ public void setAspectjDeps( IdeDependency[] aspectjDeps ) { this.aspectjDeps = aspectjDeps; } /** * Getter for eclipseProjectDir. * @return Returns the eclipseProjectDir. */ public File getEclipseProjectDirectory() { return this.eclipseProjectDirectory; } /** * Setter for eclipseProjectDir. * @param eclipseProjectDir The eclipseProjectDir to set. */ public void setEclipseProjectDirectory( File eclipseProjectDir ) { this.eclipseProjectDirectory = eclipseProjectDir; } /** * Getter for eclipseProjectName. * @return Returns the project name used in eclipse. */ public String getEclipseProjectName() { return eclipseProjectName; } /** * Setter for eclipseProjectName. * @param eclipseProjectDir the project name used in eclipse. */ public void setEclipseProjectName( String eclipseProjectName ) { this.eclipseProjectName = eclipseProjectName; } /** * Getter for project. * @return Returns the project. */ public MavenProject getProject() { return this.project; } /** * Setter for project. * @param project The project to set. */ public void setProject( MavenProject project ) { this.project = project; } /** * Getter for sourceDirs. * @return Returns the sourceDirs. */ public EclipseSourceDir[] getSourceDirs() { return this.sourceDirs; } /** * Setter for sourceDirs. * @param sourceDirs The sourceDirs to set. */ public void setSourceDirs( EclipseSourceDir[] sourceDirs ) { this.sourceDirs = sourceDirs; } /** * Getter for buildOutputDirectory. * @return Returns the buildOutputDirectory. */ public File getBuildOutputDirectory() { return this.buildOutputDirectory; } /** * Setter for buildOutputDirectory. * @param buildOutputDirectory The buildOutputDirectory to set. */ public void setBuildOutputDirectory( File buildOutputDirectory ) { this.buildOutputDirectory = buildOutputDirectory; } /** * Getter for localRepository. * @return Returns the localRepository. */ public ArtifactRepository getLocalRepository() { return this.localRepository; } /** * Setter for localRepository. * @param localRepository The localRepository to set. */ public void setLocalRepository( ArtifactRepository localRepository ) { this.localRepository = localRepository; } /** * Getter for manifestFile. * @return Returns the manifestFile. */ public File getManifestFile() { return this.manifestFile; } /** * Setter for manifestFile. * @param manifestFile The manifestFile to set. */ public void setManifestFile( File manifestFile ) { this.manifestFile = manifestFile; } /** * Getter for classpathContainers. * @return Returns the classpathContainers. */ public List getClasspathContainers() { return this.classpathContainers; } /** * Setter for classpathContainers. * @param classpathContainers The classpathContainers to set. */ public void setClasspathContainers( List classpathContainers ) { this.classpathContainers = classpathContainers; } /** * Getter for pde. * @return Returns the pde. */ public boolean isPde() { return this.pde; } /** * Setter for pde. * @param pde The pde to set. */ public void setPde( boolean pde ) { this.pde = pde; } /** * Getter for buildCommands. * @return Returns the buildCommands. */ public List getBuildCommands() { return this.buildCommands; } /** * Setter for buildCommands. * @param buildCommands The buildCommands to set. */ public void setBuildCommands( List buildCommands ) { this.buildCommands = buildCommands; } /** * Getter for projectnatures. * @return Returns the projectnatures. */ public List getProjectnatures() { return this.projectnatures; } /** * Setter for projectnatures. * @param projectnatures The projectnatures to set. */ public void setProjectnatures( List projectnatures ) { this.projectnatures = projectnatures; } /** * Getter for projectBaseDir. * @return Returns the projectBaseDir. */ public File getProjectBaseDir() { return this.projectBaseDir; } /** * Setter for projectBaseDir. * @param projectBaseDir The projectBaseDir to set. */ public void setProjectBaseDir( File projectBaseDir ) { this.projectBaseDir = projectBaseDir; } }