• Home
  • Raw
  • Download

Lines Matching refs:utility

42     public static boolean commandVerify(Utility utility) {  in commandVerify()  argument
43 if (!utility.getForceRewrite().isEmpty() && !"true".equals(utility.getForceRewrite()) in commandVerify()
44 && !"false".equals(utility.getForceRewrite())) { in commandVerify()
49 …if (!utility.getParseMode().isEmpty() && !UncompressEntrance.PARSE_MODE_HAPLIST.equals(utility.get… in commandVerify()
50 && !UncompressEntrance.PARSE_MODE_HAPINFO.equals(utility.getParseMode()) in commandVerify()
51 && !UncompressEntrance.PARSE_MODE_ALL.equals(utility.getParseMode())) { in commandVerify()
56 if (Utility.MODE_HAP.equals(utility.getMode())) { in commandVerify()
57 return hapCommandVerify(utility); in commandVerify()
58 } else if (Utility.MODE_HAR.equals(utility.getMode())) { in commandVerify()
59 return harCommandVerify(utility); in commandVerify()
60 } else if (Utility.MODE_APP.equals(utility.getMode())) { in commandVerify()
61 return appCommandVerify(utility); in commandVerify()
62 } else if (Utility.MODE_APPQF.equals(utility.getMode())) { in commandVerify()
63 return appqfVerify(utility); in commandVerify()
64 } else if (Utility.MODE_HSP.equals(utility.getMode())) { in commandVerify()
65 return hspCommandVerify(utility); in commandVerify()
78 private static boolean hapCommandVerify(Utility utility) { in hapCommandVerify() argument
79 utility.setHapPath(utility.getFormattedPath(utility.getHapPath())); in hapCommandVerify()
80 File file = new File(utility.getHapPath()); in hapCommandVerify()
86 if (!(TRUE.equals(utility.getRpcid()) || FALSE.equals(utility.getRpcid()))) { in hapCommandVerify()
90 if (TRUE.equals(utility.getRpcid())) { in hapCommandVerify()
91 return rpcidCommandVerify(utility); in hapCommandVerify()
94 return verifyOutPath(utility, file); in hapCommandVerify()
97 private static boolean hspCommandVerify(Utility utility) { in hspCommandVerify() argument
98 utility.setHspPath(utility.getFormattedPath(utility.getHspPath())); in hspCommandVerify()
99 File file = new File(utility.getHspPath()); in hspCommandVerify()
104 return verifyOutPath(utility, file); in hspCommandVerify()
113 private static boolean rpcidCommandVerify(Utility utility) { in rpcidCommandVerify() argument
114 File outPath = new File(utility.getOutPath(), RPCID_SC); in rpcidCommandVerify()
115 if (outPath.exists() && FALSE.equals(utility.getForceRewrite())) { in rpcidCommandVerify()
128 private static boolean harCommandVerify(Utility utility) { in harCommandVerify() argument
129 utility.setHarPath(utility.getFormattedPath(utility.getHarPath())); in harCommandVerify()
130 File file = new File(utility.getHarPath()); in harCommandVerify()
136 if (utility.getOutPath().isEmpty()) { in harCommandVerify()
141 return verifyOutPath(utility, file); in harCommandVerify()
150 private static boolean appCommandVerify(Utility utility) { in appCommandVerify() argument
151 if (UncompressEntrance.PARSE_MODE_HAPINFO.equals(utility.getParseMode()) in appCommandVerify()
152 && utility.getHapName().isEmpty()) { in appCommandVerify()
157 utility.setAppPath(utility.getFormattedPath(utility.getAppPath())); in appCommandVerify()
158 File file = new File(utility.getAppPath()); in appCommandVerify()
164 return verifyOutPath(utility, file); in appCommandVerify()
173 private static boolean appqfVerify(Utility utility) { in appqfVerify() argument
174 utility.setAPPQFPath(utility.getFormattedPath(utility.getAPPQFPath())); in appqfVerify()
175 File file = new File(utility.getAPPQFPath()); in appqfVerify()
182 return verifyOutPath(utility, file); in appqfVerify()
192 private static boolean verifyOutPath(Utility utility, File file) { in verifyOutPath() argument
193 if (utility.getOutPath().isEmpty() && !utility.getIsParse()) { in verifyOutPath()
198 File outFile = new File(utility.getOutPath()); in verifyOutPath()
199 if (("false".equals(utility.getForceRewrite())) && (outFile.exists())) { in verifyOutPath()