|
6 | 6 |
|
7 | 7 | /** Contains the results of installing dependencies. */ |
8 | 8 | public class DependencyInstallationResult { |
| 9 | + private Path sourceRoot; |
9 | 10 | private Path virtualSourceRoot; |
10 | 11 | private Map<String, Path> packageEntryPoints; |
11 | 12 | private Map<String, Path> packageJsonFiles; |
12 | 13 |
|
13 | 14 | public static final DependencyInstallationResult empty = |
14 | | - new DependencyInstallationResult(null, Collections.emptyMap(), Collections.emptyMap()); |
| 15 | + new DependencyInstallationResult(null, null, Collections.emptyMap(), Collections.emptyMap()); |
15 | 16 |
|
16 | 17 | public DependencyInstallationResult( |
| 18 | + Path sourceRoot, |
17 | 19 | Path virtualSourceRoot, |
18 | 20 | Map<String, Path> packageEntryPoints, |
19 | 21 | Map<String, Path> packageJsonFiles) { |
20 | 22 | this.packageEntryPoints = packageEntryPoints; |
21 | 23 | this.packageJsonFiles = packageJsonFiles; |
22 | 24 | } |
23 | 25 |
|
| 26 | + /** |
| 27 | + * Returns the source root mirrored by {@link #getVirtualSourceRoot()} or <code>null</code> |
| 28 | + * if no virtual source root exists. |
| 29 | + * <p/> |
| 30 | + * When invoked from the AutoBuilder, this corresponds to the source root. When invoked |
| 31 | + * from ODASA, there is no notion of source root, so this is always <code>null</code> in that context. |
| 32 | + */ |
| 33 | + public Path getSourceRoot() { |
| 34 | + return sourceRoot; |
| 35 | + } |
| 36 | + |
24 | 37 | /** |
25 | 38 | * Returns the virtual source root or <code>null</code> if no virtual source root exists. |
26 | 39 | * |
|
0 commit comments