net.sf.ant4eclipse.tools.internal
Class BuildOrderResolver

java.lang.Object
  extended by net.sf.ant4eclipse.tools.internal.BuildOrderResolver

public class BuildOrderResolver
extends java.lang.Object


Field Summary
static int APPEND_NONJAVA_PROJECTS
          Indicates that non-java projectes found in the team project set should be inserted before the java projects
static int FAIL_ON_NONJAVA_PROJECTS
          Indicates that the resovler should fail if there is a non-java project in the team project set.
static int IGNORE_NONJAVA_PROJECTS
          Indicates the resolver should ignore all non-java projects in the team project set.
static int PREPEND_NONJAVA_PROJECTS
          Indicates that non-java projectes found in the team project set should be inserted after the java projects
 
Method Summary
protected  EclipseProject[] resolveBuildOrder()
          Computes the build order for the projects specified in projectNames
static EclipseProject[] resolveBuildOrder(Workspace workspace, java.lang.String[] projectNames, int nonJavaProjectHandling)
          Resolves the build order for all projects in the projectNames.
static EclipseProject[] resolveBuildOrder(Workspace workspace, TeamProjectSet teamProjectSet, int nonJavaProjectHandling)
          Resolves the build order for all projects in the teamProjectSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FAIL_ON_NONJAVA_PROJECTS

public static final int FAIL_ON_NONJAVA_PROJECTS
Indicates that the resovler should fail if there is a non-java project in the team project set.

See Also:
Constant Field Values

IGNORE_NONJAVA_PROJECTS

public static final int IGNORE_NONJAVA_PROJECTS
Indicates the resolver should ignore all non-java projects in the team project set.

See Also:
Constant Field Values

PREPEND_NONJAVA_PROJECTS

public static final int PREPEND_NONJAVA_PROJECTS
Indicates that non-java projectes found in the team project set should be inserted after the java projects

See Also:
Constant Field Values

APPEND_NONJAVA_PROJECTS

public static final int APPEND_NONJAVA_PROJECTS
Indicates that non-java projectes found in the team project set should be inserted before the java projects

See Also:
Constant Field Values
Method Detail

resolveBuildOrder

public static EclipseProject[] resolveBuildOrder(Workspace workspace,
                                                 TeamProjectSet teamProjectSet,
                                                 int nonJavaProjectHandling)
                                          throws BuildOrderException,
                                                 FileParserException
Resolves the build order for all projects in the teamProjectSet.

Throws:
BuildOrderException - when a project referenced from a project contained in the teamProjectSet is not included in the teamProjectSet
FileParserException

resolveBuildOrder

public static EclipseProject[] resolveBuildOrder(Workspace workspace,
                                                 java.lang.String[] projectNames,
                                                 int nonJavaProjectHandling)
                                          throws BuildOrderException,
                                                 FileParserException
Resolves the build order for all projects in the projectNames.

Throws:
BuildOrderException - when a project referenced from a project in projectNames is not included in projectNames
FileParserException

resolveBuildOrder

protected EclipseProject[] resolveBuildOrder()
                                      throws BuildOrderException,
                                             FileParserException
Computes the build order for the projects specified in projectNames

The projects must exist in the specified workspace.

Throws:
BuildOrderException
FileParserException