1 package org.apache.maven.scm.command.add;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.util.ArrayList;
23 import java.util.List;
24
25 import org.apache.maven.scm.ScmFile;
26 import org.apache.maven.scm.ScmResult;
27
28
29
30
31
32
33
34 public class AddScmResult
35 extends ScmResult
36 {
37 private static final long serialVersionUID = 1L;
38
39 private List<ScmFile> addedFiles;
40
41 public AddScmResult( String commandLine, String providerMessage, String commandOutput, boolean success )
42 {
43 super( commandLine, providerMessage, commandOutput, success );
44
45 addedFiles = new ArrayList<ScmFile>( 0 );
46 }
47
48 public AddScmResult( String commandLine, List<ScmFile> addedFiles )
49 {
50 this( commandLine, null, null, true );
51
52 if ( addedFiles == null )
53 {
54 throw new NullPointerException( "addedFiles can't be null" );
55 }
56
57 this.addedFiles = addedFiles;
58 }
59
60 public AddScmResult( List<ScmFile> addedFiles, ScmResult result )
61 {
62 super( result );
63
64 if ( addedFiles == null )
65 {
66 throw new NullPointerException( "addedFiles can't be null" );
67 }
68
69 this.addedFiles = addedFiles;
70 }
71
72
73
74
75
76
77 public List<ScmFile> getAddedFiles()
78 {
79 return addedFiles;
80 }
81 }