Skip to content

Commit d26c5cf

Browse files
committed
Update PackagerSettings.java
1 parent 9438e17 commit d26c5cf

File tree

1 file changed

+193
-0
lines changed

1 file changed

+193
-0
lines changed

src/main/java/io/github/fvarrui/javapackager/packagers/PackagerSettings.java

Lines changed: 193 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,196 +64,389 @@ public class PackagerSettings {
6464
protected File packagingJdk;
6565
protected Scripts scripts;
6666

67+
/**
68+
* Get packaging JDK
69+
* @return Packaging JDK
70+
*/
6771
public File getPackagingJdk() {
6872
return packagingJdk;
6973
}
7074

75+
/**
76+
* Get output directory
77+
* @return Output directory
78+
*/
7179
public File getOutputDirectory() {
7280
return outputDirectory;
7381
}
7482

83+
/**
84+
* Get license file
85+
* @return License file
86+
*/
7587
public File getLicenseFile() {
7688
return licenseFile;
7789
}
7890

91+
/**
92+
* Get icon file
93+
* @return Icon file
94+
*/
7995
public File getIconFile() {
8096
return iconFile;
8197
}
8298

99+
/**
100+
* Get generate installer
101+
* @return Generate installer
102+
*/
83103
public Boolean getGenerateInstaller() {
84104
return generateInstaller;
85105
}
86106

107+
/**
108+
* Get main class
109+
* @return Main class
110+
*/
87111
public String getMainClass() {
88112
return mainClass;
89113
}
90114

115+
/**
116+
* Get name
117+
* @return Name
118+
*/
91119
public String getName() {
92120
return name;
93121
}
94122

123+
/**
124+
* Get display name
125+
* @return Display name
126+
*/
95127
public String getDisplayName() {
96128
return displayName;
97129
}
98130

131+
/**
132+
* Get version
133+
* @return Version
134+
*/
99135
public String getVersion() {
100136
return version;
101137
}
102138

139+
/**
140+
* Get description
141+
* @return Description
142+
*/
103143
public String getDescription() {
104144
return description;
105145
}
106146

147+
/**
148+
* Get URL
149+
* @return URL
150+
*/
107151
public String getUrl() {
108152
return url;
109153
}
110154

155+
/**
156+
* Get administrator required
157+
* @return Administrator required
158+
*/
111159
public Boolean getAdministratorRequired() {
112160
return administratorRequired;
113161
}
114162

163+
/**
164+
* Get organization name
165+
* @return Organization name
166+
*/
115167
public String getOrganizationName() {
116168
return organizationName;
117169
}
118170

171+
/**
172+
* Get organization URL
173+
* @return Organization URL
174+
*/
119175
public String getOrganizationUrl() {
120176
return organizationUrl;
121177
}
122178

179+
/**
180+
* Get organization email
181+
* @return Organization email
182+
*/
123183
public String getOrganizationEmail() {
124184
return organizationEmail;
125185
}
126186

187+
/**
188+
* Get bundle JRE
189+
* @return Bundle JRE
190+
*/
127191
public Boolean getBundleJre() {
128192
return bundleJre;
129193
}
130194

195+
/**
196+
* Get customized JRE
197+
* @return Customized JRE
198+
*/
131199
public Boolean getCustomizedJre() {
132200
return customizedJre;
133201
}
134202

203+
/**
204+
* Get JRE path
205+
* @return JRE path
206+
*/
135207
public File getJrePath() {
136208
return jrePath;
137209
}
138210

211+
/**
212+
* Get JDK path
213+
* @return JDK path
214+
*/
139215
public File getJdkPath() {
140216
return jdkPath;
141217
}
142218

219+
/**
220+
* Get additional resourcxes
221+
* @return Additional resources
222+
*/
143223
public List<File> getAdditionalResources() {
144224
return additionalResources;
145225
}
146226

227+
/**
228+
* Get Modules
229+
* @return Modules
230+
*/
147231
public List<String> getModules() {
148232
return modules;
149233
}
150234

235+
/**
236+
* Get additional modules
237+
* @return Additional modules
238+
*/
151239
public List<String> getAdditionalModules() {
152240
return additionalModules;
153241
}
154242

243+
/**
244+
* Get platform
245+
* @return Platform
246+
*/
155247
public Platform getPlatform() {
156248
return platform;
157249
}
158250

251+
/**
252+
* Get env path
253+
* @return Env path
254+
*/
159255
public String getEnvPath() {
160256
return envPath;
161257
}
162258

259+
/**
260+
* Get VM args
261+
* @return VM args
262+
*/
163263
public List<String> getVmArgs() {
164264
return vmArgs;
165265
}
166266

267+
/**
268+
* Get runnable JAR
269+
* @return Runnable JAR
270+
*/
167271
public File getRunnableJar() {
168272
return runnableJar;
169273
}
170274

275+
/**
276+
* Get copy dependencies
277+
* @return Copy dependencies
278+
*/
171279
public Boolean getCopyDependencies() {
172280
return copyDependencies;
173281
}
174282

283+
/**
284+
* Get JRE directory name
285+
* @return JRE directory name
286+
*/
175287
public String getJreDirectoryName() {
176288
return jreDirectoryName;
177289
}
178290

291+
/**
292+
* Get Windows config
293+
* @return Windows config
294+
*/
179295
public WindowsConfig getWinConfig() {
180296
return winConfig;
181297
}
182298

299+
/**
300+
* Get Linux config
301+
* @return Linux config
302+
*/
183303
public LinuxConfig getLinuxConfig() {
184304
return linuxConfig;
185305
}
186306

307+
/**
308+
* Get Mac OS config
309+
* @return Mac OS config
310+
*/
187311
public MacConfig getMacConfig() {
188312
return macConfig;
189313
}
190314

315+
/**
316+
* Get create tarball
317+
* @return Create tarball
318+
*/
191319
public Boolean getCreateTarball() {
192320
return createTarball;
193321
}
194322

323+
/**
324+
* Get create zipball
325+
* @return Create zipball
326+
*/
195327
public Boolean getCreateZipball() {
196328
return createZipball;
197329
}
198330

331+
/**
332+
* Get extra parameters
333+
* @return Extra parameters
334+
*/
199335
public Map<String, String> getExtra() {
200336
return extra;
201337
}
202338

339+
/**
340+
* Get if it has to use resources folder as working directory
341+
* @return Use resources folder as working directory
342+
*/
203343
public boolean isUseResourcesAsWorkingDir() {
204344
return useResourcesAsWorkingDir;
205345
}
206346

347+
/**
348+
* Get assets dir
349+
* @return Assets dir
350+
*/
207351
public File getAssetsDir() {
208352
return assetsDir;
209353
}
210354

355+
/**
356+
* Get classpath
357+
* @return Classpath
358+
*/
211359
public String getClasspath() {
212360
return classpath;
213361
}
214362

363+
/**
364+
* Get JRE min version
365+
* @return JRE min version
366+
*/
215367
public String getJreMinVersion() {
216368
return jreMinVersion;
217369
}
218370

371+
/**
372+
* Get Manifest
373+
* @return manifest
374+
*/
219375
public Manifest getManifest() {
220376
return manifest;
221377
}
222378

379+
/**
380+
* Get additional modules paths
381+
* @return Additional module paths
382+
*/
223383
public List<File> getAdditionalModulePaths() {
224384
return additionalModulePaths;
225385
}
226386

387+
/**
388+
* Get file associations
389+
* @return File associations
390+
*/
227391
public List<FileAssociation> getFileAssociations() {
228392
return fileAssociations;
229393
}
230394

395+
/**
396+
* Get scripts
397+
* @return Scripts
398+
*/
231399
public Scripts getScripts() {
232400
return scripts;
233401
}
234402

235403
// fluent api
236404

405+
/**
406+
* Set output directory
407+
* @param outputDirectory Output directory
408+
* @return Packager settings
409+
*/
237410
public PackagerSettings outputDirectory(File outputDirectory) {
238411
this.outputDirectory = outputDirectory;
239412
return this;
240413
}
241414

415+
/**
416+
* Set packaging JDK
417+
* @param packagingJdk Packaging JDK
418+
* @return Packager settings
419+
*/
242420
public PackagerSettings packagingJdk(File packagingJdk) {
243421
this.packagingJdk = packagingJdk;
244422
return this;
245423
}
246424

425+
/**
426+
* Set license file
427+
* @param licenseFile License file
428+
* @return Packager settings
429+
*/
247430
public PackagerSettings licenseFile(File licenseFile) {
248431
this.licenseFile = licenseFile;
249432
return this;
250433
}
251434

435+
/**
436+
* Set icon file
437+
* @param iconFile Icon file
438+
* @return Packager settings
439+
*/
252440
public PackagerSettings iconFile(File iconFile) {
253441
this.iconFile = iconFile;
254442
return this;
255443
}
256444

445+
/**
446+
* Set generate installer
447+
* @param generateInstaller Generate installer
448+
* @return Packager settings
449+
*/
257450
public PackagerSettings generateInstaller(Boolean generateInstaller) {
258451
this.generateInstaller = generateInstaller;
259452
return this;

0 commit comments

Comments
 (0)