Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持自定义配置文件路径 #43

Merged
merged 3 commits into from
Jul 11, 2023
Merged

支持自定义配置文件路径 #43

merged 3 commits into from
Jul 11, 2023

Conversation

Alceatraz
Copy link
Contributor

-Dxyz.cssxsh.mirai.tool.KFCFactory.config-file 可以自定义配置文件路径

支持自定义配置文件路径
@cssxsh
Copy link
Owner

cssxsh commented Jul 11, 2023

@Alceatraz

public class KFCFactory(private val config: File) : EncryptService.Factory {
    public constructor(): this(config = File(System.getProperty(CONFIG_PATH_PROPERTY, "KFCFactory.json")))
    public companion object {

        @JvmStatic
        public val CONFIG_PATH_PROPERTY: String = "xyz.cssxsh.mirai.tool.KFCFactory.config"
    }
}

Alceatraz and others added 2 commits July 11, 2023 22:39
Co-authored-by: cssxsh <cssxsh@gmail.com>
@Alceatraz
Copy link
Contributor Author

已更新

@Alceatraz

public class KFCFactory(private val config: File) : EncryptService.Factory {
    public constructor(): this(config = File(System.getProperty(CONFIG_PATH_PROPERTY, "KFCFactory.json")))
    public companion object {

        @JvmStatic
        public val CONFIG_PATH_PROPERTY: String = "xyz.cssxsh.mirai.tool.KFCFactory.config"
    }
}

已更新

@cssxsh cssxsh merged commit 8b0f4f3 into cssxsh:main Jul 11, 2023
@Alceatraz Alceatraz deleted the patch-1 branch July 11, 2023 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants