1 |
|
package org.codehaus.mojo.exec; |
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
import java.util.Collection; |
23 |
|
import java.util.Iterator; |
24 |
|
|
25 |
|
|
26 |
|
@author |
27 |
|
|
|
|
| 0% |
Uncovered Elements: 21 (21) |
Complexity: 7 |
Complexity Density: 0.64 |
|
28 |
|
public class Classpath { |
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
private Collection dependencies; |
33 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
34 |
0
|
public void setDependencies(Collection deps) {... |
35 |
0
|
this.dependencies = deps; |
36 |
|
} |
37 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
38 |
0
|
public void setDependency(String dependency) {... |
39 |
|
|
40 |
0
|
if (dependencies == null) { |
41 |
0
|
setDependencies(new java.util.ArrayList()); |
42 |
|
} |
43 |
0
|
dependencies.add(dependency); |
44 |
|
} |
45 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
46 |
0
|
public Collection getDependencies() {... |
47 |
0
|
return dependencies; |
48 |
|
} |
49 |
|
|
|
|
| 0% |
Uncovered Elements: 10 (10) |
Complexity: 3 |
Complexity Density: 0.5 |
|
50 |
0
|
public String toString() {... |
51 |
0
|
StringBuffer buffer = new StringBuffer("Classpath {"); |
52 |
|
|
53 |
0
|
if (dependencies != null) { |
54 |
0
|
for (Iterator it = dependencies.iterator(); it.hasNext();) { |
55 |
0
|
buffer.append(" ").append(it.next()); |
56 |
|
} |
57 |
|
} |
58 |
0
|
buffer.append("}"); |
59 |
0
|
return buffer.toString(); |
60 |
|
} |
61 |
|
} |