• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021-2023 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 package ohos;
17 
18 import java.io.Closeable;
19 import java.io.File;
20 import java.io.IOException;
21 import java.util.ArrayList;
22 import java.util.List;
23 import java.util.Locale;
24 
25 /**
26  * common resource.
27  *
28  */
29 public class Utility {
30     static final String MODE_HAP = "hap";
31     static final String MODE_HAR = "har";
32     static final String MODE_APP = "app";
33     static final String MODE_MULTI_APP = "multiApp";
34     static final String MODE_HQF = "hqf";
35     static final String MODE_APPQF = "appqf";
36     static final String MODE_RES = "res";
37     static final String MODE_HSP = "hsp";
38     static final String MODE_HAPADDITION = "hapAddition";
39     static final String VERSION_NORMALIZE = "versionNormalize";
40     static final String FALSE_STRING = "false";
41     static final String TRUE_STRING = "true";
42 
43     private static final String CMD_PREFIX = "--";
44     private static final Log LOG = new Log(Utility.class.toString());
45 
46     private String mode = "";
47     private String jsonPath = "";
48     private String profilePath = "";
49     private String soPath = "";
50     private String soDir = "";
51     private String abilitySoPath = "";
52     private String dexPath = "";
53     private String abcPath = "";
54     private String indexPath = "";
55     private String hapPath = "";
56     private String appPath = "";
57     private String libPath = "";
58     private String resPath = "";
59     private String resourcesPath = "";
60     private String assetsPath = "";
61     private String apkPath = "";
62     private String certificatePath = "";
63     private String signaturePath = "";
64     private String forceRewrite = "false";
65     private String outPath = "";
66     private String packInfoPath = "";
67     private String binPath = "";
68     private boolean isCompressNativeLibs = false;
69     private String moduleName = "";
70     private String harPath = "";
71     private String hspPath = "";
72     private String jarPath = "";
73     private String txtPath = "";
74     private String parseMode = "";
75     private String deviceType = "";
76     private String hapName = "";
77     private String sharedLibsPath = "";
78     private String unpackApk = "false";
79     private String unpackCutEntryApk = "false";
80     private String entryCardPath = "";
81     private String packRes = "";
82     private String packResPath = "";
83     private String filePath = "";
84     private String jsPath = "";
85     private String etsPath = "";
86     private String rpcidPath = "";
87     private int VersionCode = -1;
88     private String VersionName = "";
89     private boolean isModuleJson = false;
90     private String rpcid = FALSE_STRING;
91     private boolean isParse = false;
92     private String appqfPath = "";
93     private String anPath = "";
94     private String apPath = "";
95     private Boolean isSharedApp = false;
96     private Boolean isAppService = false;
97     private String mainModuleLimit = "";
98     private String normalModuleLimit = "";
99     private String totalLimit = "";
100     private String absoluteHapPath = "";
101     private boolean generateBuildHash = false;
102     private boolean buildHashFinish = false;
103 
104     private List<String> formattedSoPathList = new ArrayList<>();
105     private List<String> formattedAbilitySoPathList = new ArrayList<>();
106     private List<String> formattedDexPathList = new ArrayList<>();
107     private List<String> formattedAbcPathList = new ArrayList<>();
108     private List<String> formattedHapPathList = new ArrayList<>();
109     private List<String> formattedHspPathList = new ArrayList<>();
110     private List<String> formattedApkPathList = new ArrayList<>();
111     private List<String> formattedJarPathList = new ArrayList<>();
112     private List<String> formattedTxtPathList = new ArrayList<>();
113     private List<String> formattedEntryCardPathList = new ArrayList<>();
114     private List<String> formNameList = new ArrayList<>();
115     private List<String> formattedAppList = new ArrayList<>();
116     private List<String> formattedHapList = new ArrayList<>();
117 
118     private List<String> formatedDirList = new ArrayList<>();
119 
120     private List<String> formatedHQFList = new ArrayList<>();
121     private List<String> formatedABCList = new ArrayList<>();
122 
123     private String appList = "";
124     private String hapList = "";
125     private String dirList = "";
126     private String hqfList = "";
127     private String hspList = "";
128     private String inputList = "";
129     private String input = "";
130     private boolean statDuplicate = false;
131     private boolean statSuffix = false;
132     private String statFileSize = "";
133 
setIsParse(boolean isParse)134     public void setIsParse(boolean isParse) {
135         this.isParse = isParse;
136     }
137 
getIsParse()138     public boolean getIsParse() {
139         return isParse;
140     }
141 
getMode()142     public String getMode() {
143         return mode;
144     }
145 
setMode(String mode)146     public void setMode(String mode) {
147         if (!mode.startsWith(CMD_PREFIX)) {
148             this.mode = mode;
149         }
150     }
151 
getJsonPath()152     public String getJsonPath() {
153         return jsonPath;
154     }
155 
setJsonPath(String jsonPath)156     public void setJsonPath(String jsonPath) {
157         if (!jsonPath.startsWith(CMD_PREFIX)) {
158             this.jsonPath = getFormattedPath(jsonPath);
159         }
160     }
161 
getProfilePath()162     public String getProfilePath() {
163         return profilePath;
164     }
165 
setProfilePath(String profilePath)166     public void setProfilePath(String profilePath) {
167         if (!profilePath.startsWith(CMD_PREFIX)) {
168             this.profilePath = getFormattedPath(profilePath);
169         }
170     }
171 
getSoPath()172     public String getSoPath() {
173         return soPath;
174     }
175 
setSoPath(String soPath)176     public void setSoPath(String soPath) {
177         if (!soPath.startsWith(CMD_PREFIX)) {
178             this.soPath = soPath;
179         }
180     }
181 
getAbilitySoPath()182     public String getAbilitySoPath() {
183         return abilitySoPath;
184     }
185 
setAbilitySoPath(String abilitySoPath)186     public void setAbilitySoPath(String abilitySoPath) {
187         if (!abilitySoPath.startsWith(CMD_PREFIX)) {
188             this.abilitySoPath = abilitySoPath;
189         }
190     }
191 
getSoDir()192     public String getSoDir() {
193         return soDir;
194     }
195 
setSoDir(String soDir)196     public void setSoDir(String soDir) {
197         if (!soDir.startsWith(CMD_PREFIX)) {
198             this.soDir = soDir;
199         }
200     }
201 
getDexPath()202     public String getDexPath() {
203         return dexPath;
204     }
205 
setDexPath(String dexPath)206     public void setDexPath(String dexPath) {
207         if (!dexPath.startsWith(CMD_PREFIX)) {
208             this.dexPath = dexPath;
209         }
210     }
211 
getAbcPath()212     public String getAbcPath() {
213         return abcPath;
214     }
215 
setAbcPath(String abcPath)216     public void setAbcPath(String abcPath) {
217         if (!abcPath.startsWith(CMD_PREFIX)) {
218             this.abcPath = abcPath;
219         }
220     }
221 
getABCList()222     public List<String> getABCList() {
223         return formatedABCList;
224     }
225 
getFilePath()226     public String getFilePath() {
227         return filePath;
228     }
229 
setFilePath(String filePath)230     public void setFilePath(String filePath) {
231         if (!filePath.startsWith(CMD_PREFIX)) {
232             this.filePath = filePath;
233         }
234     }
235 
getIndexPath()236     public String getIndexPath() {
237         return indexPath;
238     }
239 
setIndexPath(String indexPath)240     public void setIndexPath(String indexPath) {
241         if (!indexPath.startsWith(CMD_PREFIX)) {
242             this.indexPath = getFormattedPath(indexPath);
243         }
244     }
245 
getBinPath()246     public String getBinPath() {
247         return binPath;
248     }
249 
setBinPath(String binPath)250     public void setBinPath(String binPath) {
251         if (!binPath.startsWith(CMD_PREFIX)) {
252             this.binPath = getFormattedPath(binPath);
253         }
254     }
255 
setIsModuleJson(boolean isModuleJson)256     public void setIsModuleJson(boolean isModuleJson) {
257         this.isModuleJson = isModuleJson;
258     }
259 
getIsModuleJson()260     public boolean getIsModuleJson() {
261         return isModuleJson;
262     }
263 
isCompressNativeLibs()264     public boolean isCompressNativeLibs() {
265         return isCompressNativeLibs;
266     }
267 
setIsCompressNativeLibs(boolean isCompress)268     public void setIsCompressNativeLibs(boolean isCompress) {
269         this.isCompressNativeLibs = isCompress;
270     }
271 
getHapPath()272     public String getHapPath() {
273         return hapPath;
274     }
275 
setHapPath(String hapPath)276     public void setHapPath(String hapPath) {
277         if (!hapPath.startsWith(CMD_PREFIX)) {
278             this.hapPath = hapPath;
279             if (MODE_HAPADDITION.equals(this.getMode())) {
280                 this.absoluteHapPath = getFormattedPath(hapPath);
281             }
282         }
283     }
284 
getAppPath()285     public String getAppPath() {
286         return appPath;
287     }
288 
setAppPath(String appPath)289     public void setAppPath(String appPath) {
290         if (!appPath.startsWith(CMD_PREFIX)) {
291             this.appPath = appPath;
292         }
293     }
294 
getLibPath()295     public String getLibPath() {
296         return libPath;
297     }
298 
setLibPath(String libPath)299     public void setLibPath(String libPath) {
300         if (!libPath.startsWith(CMD_PREFIX)) {
301             this.libPath = getFormattedPath(libPath);
302         }
303     }
304 
getResPath()305     public String getResPath() {
306         return resPath;
307     }
308 
setResPath(String resPath)309     public void setResPath(String resPath) {
310         if (!resPath.startsWith(CMD_PREFIX)) {
311             this.resPath = getFormattedPath(resPath);
312         }
313     }
314 
getResourcesPath()315     public String getResourcesPath() {
316         return resourcesPath;
317     }
318 
setResourcesPath(String resourcesPath)319     public void setResourcesPath(String resourcesPath) {
320         if (!resourcesPath.startsWith(CMD_PREFIX)) {
321             this.resourcesPath = getFormattedPath(resourcesPath);
322         }
323     }
324 
getAssetsPath()325     public String getAssetsPath() {
326         return assetsPath;
327     }
328 
setAssetsPath(String assetsPath)329     public void setAssetsPath(String assetsPath) {
330         if (!assetsPath.startsWith(CMD_PREFIX)) {
331             this.assetsPath = getFormattedPath(assetsPath);
332         }
333     }
334 
getModuleName()335     public String getModuleName() {
336         if (moduleName == null) {
337             moduleName = "";
338         }
339         return moduleName;
340     }
341 
setModuleName(String moduleName)342     public void setModuleName(String moduleName) {
343         this.moduleName = moduleName;
344     }
345 
getApkPath()346     public String getApkPath() {
347         return apkPath;
348     }
349 
setApkPath(String apkPath)350     public void setApkPath(String apkPath) {
351         if (!apkPath.startsWith(CMD_PREFIX)) {
352             this.apkPath = apkPath;
353         }
354     }
355 
getCertificatePath()356     public String getCertificatePath() {
357         return certificatePath;
358     }
359 
setCertificatePath(String certificatePath)360     public void setCertificatePath(String certificatePath) {
361         if (!certificatePath.startsWith(CMD_PREFIX)) {
362             this.certificatePath = getFormattedPath(certificatePath);
363         }
364     }
365 
getSignaturePath()366     public String getSignaturePath() {
367         return signaturePath;
368     }
369 
setSignaturePath(String signaturePath)370     public void setSignaturePath(String signaturePath) {
371         if (!signaturePath.startsWith(CMD_PREFIX)) {
372             this.signaturePath = getFormattedPath(signaturePath);
373         }
374     }
375 
getForceRewrite()376     public String getForceRewrite() {
377         return forceRewrite;
378     }
379 
setForceRewrite(String forceRewrite)380     public void setForceRewrite(String forceRewrite) {
381         if (!forceRewrite.startsWith(CMD_PREFIX)) {
382             this.forceRewrite = forceRewrite.toLowerCase(Locale.ENGLISH);
383         }
384     }
385 
getOutPath()386     public String getOutPath() {
387         return outPath;
388     }
389 
setOutPath(String outPath)390     public void setOutPath(String outPath) {
391         if (!outPath.startsWith(CMD_PREFIX)) {
392             this.outPath = getFormattedPath(outPath);
393         }
394     }
395 
getPackInfoPath()396     public String getPackInfoPath() {
397         return packInfoPath;
398     }
399 
setPackInfoPath(String packInfoPath)400     public void setPackInfoPath(String packInfoPath) {
401         if (!packInfoPath.startsWith(CMD_PREFIX)) {
402             this.packInfoPath = getFormattedPath(packInfoPath);
403         }
404     }
405 
getJarPath()406     public String getJarPath() {
407         return jarPath;
408     }
409 
setJarPath(String jarPath)410     public void setJarPath(String jarPath) {
411         if (!jarPath.startsWith(CMD_PREFIX)) {
412             this.jarPath = jarPath;
413         }
414     }
415 
getTxtPath()416     public String getTxtPath() {
417         return txtPath;
418     }
419 
setTxtPath(String txtPath)420     public void setTxtPath(String txtPath) {
421         if (!txtPath.startsWith(CMD_PREFIX)) {
422             this.txtPath = txtPath;
423         }
424     }
425 
getHarPath()426     public String getHarPath() {
427         return harPath;
428     }
429 
setHarPath(String harPath)430     public void setHarPath(String harPath) {
431         if (!harPath.startsWith(CMD_PREFIX)) {
432             this.harPath = harPath;
433         }
434     }
435 
setHspPath(String hspPath)436     public void setHspPath(String hspPath) {
437         if (!hspPath.startsWith(CMD_PREFIX)) {
438             this.hspPath = hspPath;
439         }
440     }
441 
getHspPath()442     public String getHspPath() {
443         return hspPath;
444     }
445 
getParseMode()446     public String getParseMode() {
447         return parseMode;
448     }
449 
setParseMode(String parseMode)450     public void setParseMode(String parseMode) {
451         if (!parseMode.startsWith(CMD_PREFIX)) {
452             this.parseMode = parseMode;
453         }
454     }
455 
getDeviceType()456     public String getDeviceType() {
457         return deviceType;
458     }
459 
setDeviceType(String deviceType)460     public void setDeviceType(String deviceType) {
461         if (!deviceType.startsWith(CMD_PREFIX)) {
462             this.deviceType = deviceType;
463         }
464     }
465 
getUnpackApk()466     public String getUnpackApk() {
467         return unpackApk;
468     }
469 
setUnpackApk(String unpackApk)470     public void setUnpackApk(String unpackApk) {
471         this.unpackApk = unpackApk;
472     }
473 
getUnpackCutEntryApk()474     public String getUnpackCutEntryApk() {
475         return unpackCutEntryApk;
476     }
477 
setUnpackCutEntryApk(String unpackCutEntryApk)478     public void setUnpackCutEntryApk(String unpackCutEntryApk) {
479         this.unpackCutEntryApk = unpackCutEntryApk;
480     }
481 
getHapName()482     public String getHapName() {
483         return hapName;
484     }
485 
setHapName(String hapName)486     public void setHapName(String hapName) {
487         if (!hapName.startsWith(CMD_PREFIX)) {
488             this.hapName = hapName;
489         }
490     }
491 
getSharedLibsPath()492     public String getSharedLibsPath() {
493         return sharedLibsPath;
494     }
495 
setSharedLibsPath(String sharedLibsPath)496     public void setSharedLibsPath(String sharedLibsPath) {
497         if (!sharedLibsPath.startsWith(CMD_PREFIX)) {
498             this.sharedLibsPath = sharedLibsPath;
499         }
500     }
501 
getEntryCardPath()502     public String getEntryCardPath() {
503         return entryCardPath;
504     }
505 
setEntryCardPath(String entryCardPath)506     public void setEntryCardPath(String entryCardPath) {
507         if (!entryCardPath.startsWith(CMD_PREFIX)) {
508             this.entryCardPath = entryCardPath;
509         }
510     }
511 
getPackRes()512     public String getPackRes() {
513         return packRes;
514     }
515 
setPackRes(String packRes)516     public void setPackRes(String packRes) {
517         this.packRes = packRes;
518     }
519 
getPackResPath()520     public String getPackResPath() {
521         return packResPath;
522     }
523 
setPackResPath(String packResPath)524     public void setPackResPath(String packResPath) {
525         this.packResPath = packResPath;
526     }
527 
getJsPath()528     public String getJsPath() { return jsPath; }
529 
setJsPath(String jsPath)530     public void setJsPath(String jsPath) { this.jsPath = jsPath; }
531 
getEtsPath()532     public String getEtsPath() { return etsPath; }
533 
setEtsPath(String etsPath)534     public void setEtsPath(String etsPath) { this.etsPath = etsPath; }
535 
getRpcidPath()536     public String getRpcidPath() {
537         return rpcidPath;
538     }
539 
setRpcidPath(String rpcidPath)540     public void setRpcidPath(String rpcidPath) {
541         this.rpcidPath = rpcidPath;
542     }
543 
getRpcid()544     public String getRpcid() { return rpcid; }
545 
setRpcid(String rpcid)546     public void setRpcid(String rpcid) {
547         this.rpcid = rpcid;
548     }
549 
getVersionName()550     public String getVersionName() {
551         return VersionName;
552     }
553 
setVersionName(String VersionName)554     public void setVersionName(String VersionName) {
555         this.VersionName = VersionName;
556     }
557 
getVersionCode()558     public int getVersionCode() {
559         return VersionCode;
560     }
561 
setVersionCode(int VersionCode)562     public void setVersionCode(int VersionCode) {
563         this.VersionCode = VersionCode;
564     }
565 
getFormattedSoPathList()566     public List<String> getFormattedSoPathList() {
567         return formattedSoPathList;
568     }
569 
getFormattedAbilitySoPathList()570     public List<String> getFormattedAbilitySoPathList() {
571         return formattedAbilitySoPathList;
572     }
573 
getFormattedDexPathList()574     public List<String> getFormattedDexPathList() {
575         return formattedDexPathList;
576     }
577 
getFormattedAbcPathList()578     public List<String> getFormattedAbcPathList() {
579         return formattedAbcPathList;
580     }
581 
getFormattedHapPathList()582     public List<String> getFormattedHapPathList() {
583         return formattedHapPathList;
584     }
585 
getFormattedHspPathList()586     public List<String> getFormattedHspPathList() {
587         return formattedHspPathList;
588     }
589 
getFormattedApkPathList()590     public List<String> getFormattedApkPathList() {
591         return formattedApkPathList;
592     }
593 
getFormattedJarPathList()594     public List<String> getFormattedJarPathList() {
595         return formattedJarPathList;
596     }
597 
getFormattedTxtPathList()598     public List<String> getFormattedTxtPathList() {
599         return formattedTxtPathList;
600     }
601 
getFormattedAppList()602     public List<String> getFormattedAppList() {
603         return formattedAppList;
604     }
605 
getFormattedHapList()606     public List<String> getFormattedHapList() {
607         return formattedHapList;
608     }
609 
setAppList(String appList)610     public void setAppList(String appList) {
611         this.appList = appList;
612     }
613 
getAppList()614     public String getAppList() {
615         return this.appList;
616     }
617 
setHapList(String hapList)618     public void setHapList(String hapList) {
619         this.hapList = hapList;
620     }
621 
getHapList()622     public String getHapList() {
623         return this.hapList;
624     }
625 
getDirList()626     public String getDirList() {
627         return this.dirList;
628     }
629 
setDirList(String dirList)630     public void setDirList(String dirList) {
631         this.dirList = dirList;
632     }
633 
getFormatedDirList()634     public List<String> getFormatedDirList() {
635         return this.formatedDirList;
636     }
637 
638     /**
639      * get dEntryCard path
640      *
641      * @return formattedEntryCardPathList
642      */
getformattedEntryCardPathList()643     public List<String> getformattedEntryCardPathList() {
644         return formattedEntryCardPathList;
645     }
646 
647     /**
648      * get canonical path
649      *
650      * @param path path input
651      * @return formatted path
652      */
getFormattedPath(String path)653     public String getFormattedPath(String path) {
654         if (path == null) {
655             return "";
656         }
657 
658         File file = new File(path);
659         String canonicalPath;
660         try {
661             canonicalPath = file.getCanonicalPath();
662         } catch (IOException exception) {
663             canonicalPath = "";
664             LOG.error("Utility::getFormattedPath exception," + exception.getMessage());
665         }
666         return canonicalPath;
667     }
668 
669     /**
670      * close stream.
671      *
672      * @param stream stream to close
673      */
closeStream(Closeable stream)674     static void closeStream(Closeable stream) {
675         if (stream != null) {
676             try {
677                 stream.close();
678             } catch (IOException exception) {
679                 LOG.error("Utility::closeStream io close exception: " + exception.getMessage());
680             }
681         }
682     }
683 
684     /**
685      * Add form name.
686      *
687      * @param formName the name of form
688      */
addFormNameList(String formName)689     public void addFormNameList(String formName) {
690         this.formNameList.add(formName);
691     }
692 
693     /**
694      * Get all form names
695      *
696      * @return all form names
697      */
getFormNameList()698     public List<String> getFormNameList() {
699         return formNameList;
700     }
701 
getHqfList()702     public String getHqfList() {
703         return hqfList;
704     }
705 
setHqfList(String hqfList)706     public void setHqfList(String hqfList) {
707         this.hqfList = hqfList;
708     }
709 
getFormatedHQFList()710     public List<String> getFormatedHQFList() {
711         return formatedHQFList;
712     }
713 
setFormatedHQFList(List<String> formatedHQFList)714     public void setFormatedHQFList(List<String> formatedHQFList) {
715         this.formatedHQFList = formatedHQFList;
716     }
717 
setAPPQFPath(String appqfPath)718     public void setAPPQFPath(String appqfPath) {
719         this.appqfPath = appqfPath;
720     }
721 
getAPPQFPath()722     public String getAPPQFPath() {
723         return this.appqfPath;
724     }
725 
setANPath(String anPath)726     public void setANPath(String anPath) {
727         this.anPath = anPath;
728     }
729 
getANPath()730     public String getANPath() {
731         return this.anPath;
732     }
733 
setAPPath(String apPath)734     public void setAPPath(String apPath) {
735         this.apPath = apPath;
736     }
737 
getAPPath()738     public String getAPPath() {
739         return this.apPath;
740     }
741 
getAbsoluteHapPath()742     public String getAbsoluteHapPath() {
743         return this.absoluteHapPath;
744     }
745 
setAbsoluteHapPath(String absoluteHapPath)746     public void setAbsoluteHapPath(String absoluteHapPath) {
747         if (!absoluteHapPath.startsWith(CMD_PREFIX)) {
748             this.absoluteHapPath = getFormattedPath(absoluteHapPath);
749         }
750     }
751 
setIsSharedApp(boolean isSharedApp)752     public void setIsSharedApp(boolean isSharedApp) {
753         this.isSharedApp = isSharedApp;
754     }
755 
getSharedApp()756     public Boolean getSharedApp() {
757         return isSharedApp;
758     }
759 
setIsAppService(boolean isAppService)760     public void setIsAppService(boolean isAppService) {
761         this.isAppService = isAppService;
762     }
763 
getIsAppService()764     public Boolean getIsAppService() {
765         return isAppService;
766     }
767 
setMainModuleLimit(String limit)768     public void setMainModuleLimit(String limit) {
769         this.mainModuleLimit = limit;
770     }
771 
getMainModuleLimit()772     public String getMainModuleLimit() {
773         return mainModuleLimit;
774     }
775 
getNormalModuleLimit()776     public String getNormalModuleLimit() {
777         return normalModuleLimit;
778     }
779 
setNormalModuleLimit(String limit)780     public void setNormalModuleLimit(String limit) {
781         this.normalModuleLimit = limit;
782     }
783 
getTotalLimit()784     public String getTotalLimit() {
785         return totalLimit;
786     }
787 
setTotalLimit(String limit)788     public void setTotalLimit(String limit) {
789         this.totalLimit = limit;
790     }
791 
getHspList()792     public String getHspList() {
793         return hspList;
794     }
795 
setHspList(String hspList)796     public void setHspList(String hspList) {
797         this.hspList = hspList;
798     }
799 
setGenerateBuildHash(boolean generateBuildHash)800     public void setGenerateBuildHash(boolean generateBuildHash) {
801         this.generateBuildHash = generateBuildHash;
802     }
803 
getGenerateBuildHash()804     public boolean getGenerateBuildHash() {
805         return generateBuildHash;
806     }
807 
setBuildHashFinish(boolean buildHashFinish)808     public void setBuildHashFinish(boolean buildHashFinish) {
809         this.buildHashFinish = buildHashFinish;
810     }
811 
isBuildHashFinish()812     public boolean isBuildHashFinish() {
813         return buildHashFinish;
814     }
815 
getInputList()816     public String getInputList() {
817         return inputList;
818     }
819 
setInputList(String inputList)820     public void setInputList(String inputList) {
821         this.inputList = inputList;
822     }
823 
getInput()824     public String getInput() {
825         return input;
826     }
827 
setInput(String input)828     public void setInput(String input) {
829         this.input = getFormattedPath(input);
830     }
831 
getStatDuplicate()832     public boolean getStatDuplicate() {
833         return statDuplicate;
834     }
835 
setStatDuplicate(boolean statDuplicate)836     public void setStatDuplicate(boolean statDuplicate) {
837         this.statDuplicate = statDuplicate;
838     }
839 
getStatSuffix()840     public boolean getStatSuffix() {
841         return statSuffix;
842     }
843 
setStatSuffix(boolean statSuffix)844     public void setStatSuffix(boolean statSuffix) {
845         this.statSuffix = statSuffix;
846     }
getStatFileSize()847     public String getStatFileSize() {
848         return statFileSize;
849     }
850 
setStatFileSize(String statFileSize)851     public void setStatFileSize(String statFileSize) {
852         this.statFileSize = statFileSize;
853     }
854 }
855