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