【问题标题】:install4j: How can I get the compile date / timestamp of the currently executing launcher at runtime?install4j:如何在运行时获取当前正在执行的启动器的编译日期/时间戳?
【发布时间】:2021-09-19 14:30:14
【问题描述】:

how to get the Version类似的问题。

【问题讨论】:

    标签: java install4j


    【解决方案1】:

    可以查询sys.timestamp编译器变量:

    import com.install4j.api.launcher.Variables.Variables;
    
    try {
        String version = Variables.getCompilerVariable("sys.timestamp");
    } catch (IOException e) {
        // TODO not running in installation
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-03-10
      • 2020-01-02
      • 2010-12-31
      • 2010-09-29
      • 1970-01-01
      • 1970-01-01
      • 2015-04-28
      相关资源
      最近更新 更多