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 |
|
|
33 |
|
private Collection dependencies; |
34 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
35 |
0
|
public void setDependencies( Collection deps )... |
36 |
|
{ |
37 |
0
|
this.dependencies = deps; |
38 |
|
} |
39 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 2 |
Complexity Density: 0.67 |
|
40 |
0
|
public void setDependency( String dependency )... |
41 |
|
{ |
42 |
|
|
43 |
0
|
if ( dependencies == null ) |
44 |
|
{ |
45 |
0
|
setDependencies( new java.util.ArrayList() ); |
46 |
|
} |
47 |
0
|
dependencies.add( dependency ); |
48 |
|
} |
49 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
50 |
0
|
public Collection getDependencies()... |
51 |
|
{ |
52 |
0
|
return dependencies; |
53 |
|
} |
54 |
|
|
|
|
| 0% |
Uncovered Elements: 10 (10) |
Complexity: 3 |
Complexity Density: 0.5 |
|
55 |
0
|
public String toString()... |
56 |
|
{ |
57 |
0
|
StringBuffer buffer = new StringBuffer( "Classpath {" ); |
58 |
|
|
59 |
0
|
if ( dependencies != null ) |
60 |
|
{ |
61 |
0
|
for ( Iterator it = dependencies.iterator(); it.hasNext(); ) |
62 |
|
{ |
63 |
0
|
buffer.append( " " ).append( it.next() ); |
64 |
|
} |
65 |
|
} |
66 |
0
|
buffer.append( "}" ); |
67 |
0
|
return buffer.toString(); |
68 |
|
} |
69 |
|
} |