永久試用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();
}