1 package org.codehaus.mojo.natives.linker;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 import java.io.File;
28 import java.util.ArrayList;
29 import java.util.List;
30
31 import org.codehaus.mojo.natives.ConfigurationBase;
32
33
34
35
36
37 public class LinkerConfiguration
38 extends ConfigurationBase
39 {
40
41 private File workingDirectory;
42
43
44
45
46 private String executable;
47
48
49
50
51 private String[] startOptions;
52
53 private String[] middleOptions;
54
55 private String[] endOptions;
56
57 private File outputDirectory;
58
59 private String outputFileExtension;
60
61 private String outputFileName;
62
63
64
65
66 private File externalLibDirectory;
67
68
69
70
71 private List externalLibFileNames;
72
73
74
75
76 private boolean usingLinkerResponseFile;
77
78
79
80
81
82
83 private boolean checkStaleLinkage;
84
85 public File getOutputDirectory()
86 {
87 return this.outputDirectory;
88 }
89
90 public void setOutputDirectory( File dir )
91 {
92 this.outputDirectory = dir;
93 }
94
95 public String getOutputFileExtension()
96 {
97 return this.outputFileExtension;
98 }
99
100 public void setOutputFileExtension( String ext )
101 {
102 this.outputFileExtension = ext;
103 }
104
105 public File getWorkingDirectory()
106 {
107 return this.workingDirectory;
108 }
109
110 public void setWorkingDirectory( File dir )
111 {
112 this.workingDirectory = dir;
113 }
114
115 public String[] getStartOptions()
116 {
117 return this.startOptions;
118 }
119
120 public void setStartOptions( String[] options )
121 {
122 this.startOptions = options;
123 }
124
125 public String[] getMiddleOptions()
126 {
127 return this.middleOptions;
128 }
129
130 public void setMiddleOptions( String[] options )
131 {
132 this.middleOptions = options;
133 }
134
135 public String[] getEndOptions()
136 {
137 return this.endOptions;
138 }
139
140 public void setEndOptions( String[] options )
141 {
142 this.endOptions = options;
143 }
144
145 public String getExecutable()
146 {
147 return this.executable;
148 }
149
150 public void setExecutable( String executable )
151 {
152 this.executable = executable;
153 }
154
155 public String getOutputFileName()
156 {
157 return this.outputFileName;
158 }
159
160 public void setOutputFileName( String name )
161 {
162 this.outputFileName = name;
163 }
164
165
166
167
168
169
170 public File getOutputFile()
171 {
172 File out = new File( this.outputDirectory, this.outputFileName + "." + this.outputFileExtension );
173
174 return out;
175 }
176
177 public List getExternalLibFileNames()
178 {
179 if ( this.externalLibFileNames == null )
180 {
181 return new ArrayList( 0 );
182 }
183
184 return this.externalLibFileNames;
185 }
186
187 public void setExternalLibFileNames( List list )
188 {
189 this.externalLibFileNames = list;
190 }
191
192 public void setExternalLibDirectory( File dir )
193 {
194 this.externalLibDirectory = dir;
195 }
196
197 public File getExternalLibDirectory()
198 {
199 return this.externalLibDirectory;
200 }
201
202 public boolean isUsingLinkerResponseFile()
203 {
204 return usingLinkerResponseFile;
205 }
206
207 public void setUsingLinkerResponseFile( boolean useObjectsFile )
208 {
209 this.usingLinkerResponseFile = useObjectsFile;
210 }
211
212 public boolean isCheckStaleLinkage()
213 {
214 return checkStaleLinkage;
215 }
216
217 public void setCheckStaleLinkage( boolean checkStaleLinkage )
218 {
219 this.checkStaleLinkage = checkStaleLinkage;
220 }
221
222 }