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