永久試用jira 4.0.1
現在最新版的jira是4.0.1 可以在官網上下載并申請試用license,
在正常安裝并申請試用后,將在30天后過期。將atlassian-extras-2.2.2.jar
解開,反編譯com.atlassian.extras.core.DefaultProductLicense.class這個類,將getExpiryDate() 和 getExpiryDate(LicenseProperties properties)兩
個方法改下面代碼就可以永遠的試用jira了。
public Date getExpiryDate() {
// return expiryDate == null ?null : new Date(expiryDate.getTime());
Calendar c =Calendar.getInstance();
c.set(Calendar.YEAR,
c.get(Calendar.YEAR)+1);
returnc.getTime();
}
private Date getExpiryDate(LicenseProperties properties) {
String expiryDateString
= properties.getProperty("LicenseExpiryDate",
"1970-01-01");
log.debug((newStringBuilder()).append("Expiry date is <").append(
expiryDateString).append(">").toString());
// return DateEditor.getDate(expiryDateString);
Calendar c =Calendar.getInstance();
c.set(Calendar.YEAR,
c.get(Calendar.YEAR)+1);
returnc.getTime();
}
然后將這個類再重新打包到atlassian-extras-2.2.2.jar就可以永遠是還有11個月20幾天的試用期了。
本方法只做個人學習與研究使用,不得做為商業用途,請支持正版軟件!
posted on 2010-02-08 10:08
Libo 閱讀(883)
評論(2) 編輯 收藏 所屬分類:
項目管理