tao.mo

打包小程序

mt
2023年7月26日17:27:28
1 +package com.erry;
2 +
1 public class Main { 3 public class Main {
4 + public static void main(String[] args){
5 +
6 + }
2 } 7 }
......
1 +package com.erry.utils;
2 +
3 +import java.io.BufferedReader;
4 +import java.io.InputStream;
5 +import java.io.InputStreamReader;
6 +import java.util.Properties;
7 +
8 +public class ConfigUtils {
9 + public static String readSysProperty(String key) {
10 + Properties properties = new Properties();
11 + String value = "";
12 + try {
13 + InputStream inputStream = Object.class.getResourceAsStream("/sys_config.properties");
14 + InputStreamReader isr = new InputStreamReader(inputStream, "GBK");
15 + BufferedReader br = new BufferedReader(isr);
16 + properties.load(br);
17 + value = properties.getProperty(key);
18 + } catch (Exception e) {
19 + e.printStackTrace();
20 + }
21 + return value;
22 + }
23 +}
1 +#需要打包项目地址
2 +project_address=D:/workspace/prjIClear
3 +#需要保留目录
4 +reserve_folder=
...\ No newline at end of file ...\ No newline at end of file