1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package com.github.maven_nar;
21
22 import java.util.ArrayList;
23 import java.util.List;
24
25 import org.apache.maven.plugins.annotations.Parameter;
26
27 public class ProcessLibraryCommand {
28
29
30
31
32 @Parameter
33 private String executable;
34
35
36
37
38 @Parameter
39 private String libraryType;
40
41
42
43
44 @Parameter
45 private List<String> arguments;
46
47 public List<String> getArguments() {
48 return this.arguments;
49 }
50
51 public List<String> getCommandList() {
52 final List<String> command = new ArrayList<>();
53 command.add(this.executable);
54 if (this.arguments != null) {
55 command.addAll(this.arguments);
56 }
57 return command;
58 }
59
60 public String getExecutable() {
61 return this.executable;
62 }
63
64 public String getType() {
65 return this.libraryType;
66 }
67
68 public void setArguments(final List<String> arguments) {
69 this.arguments = arguments;
70 }
71
72 public void setExecutable(final String executable) {
73 this.executable = executable;
74 }
75
76 public void setType(final String type) {
77 this.libraryType = type;
78 }
79
80 }