1 package org.apache.maven.jelly.tags.maven;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 import java.util.List;
22
23 import org.apache.maven.project.Project;
24
25 /**
26 * @author <a href="mailto:bwalding@apache.org">Ben Walding</a>
27 * @version $Id: DependencyResolverInterface.java 517014 2007-03-11 21:15:50Z ltheussl $
28 */
29 public interface DependencyResolverInterface
30 {
31 /**
32 * Clear the project list and set the graph built flag to false.
33 */
34 void clear();
35
36 /**
37 * Set a list of projects to process.
38 *
39 * @param projects List of projects.
40 */
41 void setProjects( List projects );
42
43 /**
44 * Get the list of projects in dependency sorted order.
45 *
46 * @param project The project to use as the head of the graph.
47 * @return The list of projects.
48 * @throws DependencyResolverException If an error occurs while processing the graph.
49 */
50 List getSortedDependencies( Project project )
51 throws DependencyResolverException;
52
53 /**
54 * Get the list of projects in dependency sorted order.
55 *
56 * @param project The project to use as the head of the graph.
57 * @param sourceBuild Indicate we are performing a source build.
58 * @return The list of projects.
59 * @throws DependencyResolverException If an error occurs while processing the graph.
60 */
61 List getSortedDependencies( Project project, boolean sourceBuild )
62 throws DependencyResolverException;
63
64 /**
65 * Get the list of projects in dependency sorted order.
66 *
67 * @param sourceBuild Flag to indicate we are performing a source build.
68 * @return The list of projects.
69 * @throws DependencyResolverException If an error occurs while processing the graph.
70 */
71 List getSortedDependencies( boolean sourceBuild )
72 throws DependencyResolverException;
73 }