1 |
|
package org.kuali.maven.wagon; |
2 |
|
|
3 |
|
import java.io.File; |
4 |
|
|
5 |
|
import org.apache.maven.wagon.events.TransferEvent; |
6 |
|
import org.apache.maven.wagon.resource.Resource; |
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
|
|
| 0% |
Uncovered Elements: 25 (25) |
Complexity: 12 |
Complexity Density: 0.92 |
|
11 |
|
public class PutFileContext { |
12 |
|
File source; |
13 |
|
String destination; |
14 |
|
Resource resource; |
15 |
|
TransferProgress progress; |
16 |
|
TransferListenerSupport listeners; |
17 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
18 |
0
|
public void fireStart() {... |
19 |
0
|
listeners.fireTransferInitiated(getResource(), TransferEvent.REQUEST_PUT); |
20 |
0
|
listeners.fireTransferStarted(getResource(), TransferEvent.REQUEST_PUT); |
21 |
|
} |
22 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
23 |
0
|
public void fireComplete() {... |
24 |
0
|
listeners.fireTransferCompleted(getResource(), TransferEvent.REQUEST_PUT); |
25 |
|
} |
26 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
27 |
0
|
public Resource getResource() {... |
28 |
0
|
return resource; |
29 |
|
} |
30 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
31 |
0
|
public void setResource(Resource resource) {... |
32 |
0
|
this.resource = resource; |
33 |
|
} |
34 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
35 |
0
|
public TransferProgress getProgress() {... |
36 |
0
|
return progress; |
37 |
|
} |
38 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
39 |
0
|
public void setProgress(TransferProgress progress) {... |
40 |
0
|
this.progress = progress; |
41 |
|
} |
42 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
43 |
0
|
public TransferListenerSupport getListeners() {... |
44 |
0
|
return listeners; |
45 |
|
} |
46 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
47 |
0
|
public void setListeners(TransferListenerSupport listeners) {... |
48 |
0
|
this.listeners = listeners; |
49 |
|
} |
50 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
51 |
0
|
public String getDestination() {... |
52 |
0
|
return destination; |
53 |
|
} |
54 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
55 |
0
|
public void setDestination(String destination) {... |
56 |
0
|
this.destination = destination; |
57 |
|
} |
58 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
59 |
0
|
public File getSource() {... |
60 |
0
|
return source; |
61 |
|
} |
62 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
63 |
0
|
public void setSource(File source) {... |
64 |
0
|
this.source = source; |
65 |
|
} |
66 |
|
|
67 |
|
} |