use of com.kyj.fx.voeditor.visual.framework.model.GagoyleDate in project Gargoyle by callakrsos.
the class DateUtil method getPeriodDaysByWeek.
public static List<GagoyleDate> getPeriodDaysByWeek(int startYear, int startWeek, int endYear, int endWeek) {
Calendar firstCalendar = GregorianCalendar.getInstance();
firstCalendar.setWeekDate(startYear, startWeek, Calendar.SUNDAY);
// Date firstDate = firstCalendar.getTime();
Calendar lastCalendar = GregorianCalendar.getInstance();
lastCalendar.setWeekDate(endYear, endWeek, /* Calendar.SUNDAY */
lastCalendar.get(Calendar.DAY_OF_WEEK));
// Date lastDate = lastCalendar.getTime();
ArrayList<GagoyleDate> arrayList = new ArrayList<>();
while (firstCalendar.before(lastCalendar)) {
firstCalendar.add(Calendar.DATE, 1);
arrayList.add(new GagoyleDate(firstCalendar.getTime()));
}
return arrayList;
}
use of com.kyj.fx.voeditor.visual.framework.model.GagoyleDate in project Gargoyle by callakrsos.
the class SVNHistoryWalkTest method historyWalkAnalysisTest.
/**
* 현재 일자에 최신 커밋내역을 조회.
* @작성자 : KYJ
* @작성일 : 2016. 7. 14.
* @throws SVNException
*/
@Test
public void historyWalkAnalysisTest() throws SVNException {
List<GagoyleDate> periodDaysByWeek = DateUtil.getPeriodDaysByWeek();
GagoyleDate start = periodDaysByWeek.get(0);
GagoyleDate end = periodDaysByWeek.get(periodDaysByWeek.size() - 1);
long startRevision = localServerManager2.getRevision(start.toDate());
long endRevision = localServerManager2.getRevision(end.toDate());
System.out.println("start " + start.toDateString() + " end : " + end.toDateString());
System.out.println("startRevision " + startRevision + " endRevision : " + endRevision);
Collection<SVNLogEntry> allLogs = localServerManager2.getAllLogs(startRevision, endRevision);
allLogs.stream().map(localServerManager2.fromPrettySVNLogConverter()).forEach(System.out::println);
}
Aggregations