net.sf.ant4eclipse.ant.util
Class ProjectBase

java.lang.Object
  extended by net.sf.ant4eclipse.ant.util.WorkspaceBase
      extended by net.sf.ant4eclipse.ant.util.ProjectBase

public class ProjectBase
extends WorkspaceBase

Base class for project based tasks and conditions.


Constructor Summary
ProjectBase(ProjectComponent component)
           
 
Method Summary
 EclipseProject getEclipseProject()
          Returns the associated eclipse project.
 boolean isProjectNameSet()
          Returns true if the project name has been set.
 boolean isProjectSet()
          Returns true if the project has been set.
 void requireWorkspaceAndProjectNameOrProjectSet()
          Requires that either the workspace and the project name or the project directory.
 void setProject(java.io.File projectDirectory)
          Sets the project directory.
 void setProjectName(java.lang.String projectName)
          Sets the name of the project.
 
Methods inherited from class net.sf.ant4eclipse.ant.util.WorkspaceBase
getDirSeparator, getPathSeparator, getWorkspace, isInitialiseWorkspaceSet, isWorkspaceSet, requireWorkspaceSet, setDirSeparator, setInitialiseWorkspace, setPathProperty, setPathSeparator, setStringProperty, setWorkspace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectBase

public ProjectBase(ProjectComponent component)
Parameters:
component -
Method Detail

getEclipseProject

public EclipseProject getEclipseProject()
                                 throws BuildException
Returns the associated eclipse project.

Returns:
the associated eclipse project.
Throws:
BuildException - thrown if the eclipse project could not be read.

setProjectName

public final void setProjectName(java.lang.String projectName)
Sets the name of the project.

Parameters:
projectName - the name of the project.

isProjectNameSet

public final boolean isProjectNameSet()
Returns true if the project name has been set.

Returns:
true if the project name has been set.

setProject

public final void setProject(java.io.File projectDirectory)
Sets the project directory.

Parameters:
projectDirectory - the project directory.

isProjectSet

public final boolean isProjectSet()
Returns true if the project has been set.

Returns:
true if the project has been set.

requireWorkspaceAndProjectNameOrProjectSet

public final void requireWorkspaceAndProjectNameOrProjectSet()
Requires that either the workspace and the project name or the project directory.