com.diboot.devtools.v2.OO0OOO00OO000O00 Maven / Gradle / Ivy
The newest version!
/**
* Copyright (c) dibo.ltd, https://www.dibo.ltd, https://www.diboot.com
*
* ---- 版权声明 ----
* Diboot相关商标、软件著作权、专利等全部知识产权隶属于苏州帝博信息技术有限公司。
* Diboot devtools 非开源项目,如您有devtools相关定制化需求,请至官网(https://www.dibo.ltd)联系帝博信息商务。
*
* 《中华人民共和国刑法》规定:破坏计算机信息系统罪,处五年以下有期徒刑或者拘役;后果特别严重的,处五年以上有期徒刑。
* 侵犯知识产权罪:处三年以下有期徒刑、拘役或管制,并处罚金;情节特别严重的,处三年以上七年以下有期徒刑,并处罚金。
*
* 任何尝试破解、破坏devtools、侵犯diboot知识产权的行为,我们将不惜一切代价追究到底!
*
*/
package com.diboot.devtools.v2;
import com.diboot.core.config.Cons;
import com.diboot.core.util.S;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@Slf4j
@Deprecated()
public class OO0OOO00OO000O00 {
@Deprecated()
public static String llll1l1l1l11l1l(String[] l1ll1lllll11, String[] lll1l11111l1, Map ll111l1l1l11) {
if (l1ll1lllll11 == null) {
return null;
}
String ll1111lll1l1 = null;
for (int l11l111ll1ll = 0; l11l111ll1ll < l1ll1lllll11.length; l11l111ll1ll++) {
String ll1lll11ll11 = l1ll1lllll11[l11l111ll1ll];
File l11111llll1l = new File(ll1lll11ll11);
if (!l11111llll1l.exists()) {
continue;
}
if (lll1l11111l1.length < (l11l111ll1ll + 1)) {
break;
}
String lll111lll11l = lll1l11111l1[l11l111ll1ll];
try {
log.info(OOO0OO00O00O00OO.l11llll1ll11ll1("e30gPT4ge30="), ll1lll11ll11, lll111lll11l);
List l1l1l1111111 = FileUtils.readLines(l11111llll1l, Cons.CHARSET_UTF8);
List lll1l111l1l1 = new ArrayList<>(l1l1l1111111.size());
for (String lll1l1ll1lll : l1l1l1111111) {
for (Map.Entry llll111l1ll1 : ll111l1l1l11.entrySet()) {
lll1l1ll1lll = S.replace(lll1l1ll1lll, llll111l1ll1.getKey(), llll111l1ll1.getValue());
}
lll1l111l1l1.add(lll1l1ll1lll);
}
FileUtils.writeLines(new File(lll111lll11l), Cons.CHARSET_UTF8, lll1l111l1l1);
FileUtils.forceDelete(l11111llll1l);
log.info(OOO0OO00O00O00OO.l11llll1ll11ll1("e30gZG9uZQ=="), ll1lll11ll11);
} catch (Exception e) {
log.error(OOO0OO00O00O00OO.l11llll1ll11ll1("6YeN5ZG95ZCN5paH5Lu25byC5bi4OiB7fQ=="), e.getMessage());
ll1111lll1l1 = OOO0OO00O00O00OO.l11llll1ll11ll1("6YeN5ZG95ZCN5pON5L2c5byC5bi4IDog") + e.getMessage();
}
}
return ll1111lll1l1;
}
}