net.sf.ant4eclipse.tools
Class ProjectFactory

java.lang.Object
  extended by net.sf.ant4eclipse.tools.ProjectFactory

public class ProjectFactory
extends java.lang.Object

The project factory can be used the read eclipse projects from a workspace.


Constructor Summary
ProjectFactory()
           
 
Method Summary
static EclipseProject[] readAllProjectsFromWorkspace(Workspace workspace)
          Reads all projects from the workspace.
static EclipseProject readProjectFromWorkspace(Workspace workspace, java.lang.String projectName)
          Reads the specified project from the workspace.
static EclipseProject[] readProjectsFromWorkspace(Workspace workspace, java.lang.String[] projectNames)
          Reads the specified projects from the workspace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectFactory

public ProjectFactory()
Method Detail

readProjectsFromWorkspace

public static EclipseProject[] readProjectsFromWorkspace(Workspace workspace,
                                                         java.lang.String[] projectNames)
                                                  throws FileParserException
Reads the specified projects from the workspace.

Parameters:
workspace - The workspace which shall be read.
projectNames - The names of the projects that shall be read.
Returns:
A list of project instances.
Throws:
FileParserException - Reading a project failed.

readAllProjectsFromWorkspace

public static EclipseProject[] readAllProjectsFromWorkspace(Workspace workspace)
                                                     throws FileParserException
Reads all projects from the workspace.

Parameters:
workspace - The workspace which projects shall be readed.
Returns:
A list of all EclipseProject instances.
Throws:
FileParserException - Reading a project failed.

readProjectFromWorkspace

public static EclipseProject readProjectFromWorkspace(Workspace workspace,
                                                      java.lang.String projectName)
                                               throws FileParserException
Reads the specified project from the workspace.

Parameters:
workspace - The Workspace location of the desired project.
projectName - The name of the project.
Returns:
An EclipseProject instance providing all necessary data.
Throws:
FileParserException - Reading the project failed.