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