ant实现JAVA程序自动增加程序的版本号
摘要:
程序每编译一次,版本号就自动增加1。编译时动态生成运行时获得当前版本号的类
public class Project
{
static public String getBuildVersion() { return "0.0.28"; }
static public String getBuildNumber() {return "28";}
static public String getVersion() {return "0";}
static public String getRevision() {return "0";}
static public String getBuildDate() {return "Wed Sep 13 16:33:20 CST 2006";}
} 阅读全文
posted @ 2006-09-13 17:58 网际大鱼 阅读(3930) 评论(0) 推荐(0) 编辑