Skip to content

Instantly share code, notes, and snippets.

View mmsajjad-aspose's full-sized avatar

Muhammad Mateen mmsajjad-aspose

View GitHub Profile
// For complete examples and data files, please go to https://github.com/aspose-tasks/Aspose.Tasks-for-Java
// The path to the documents directory.
String dataDir = Utils.getDataDir(AddRemoveCalendarExceptions.class);
Project project = new Project(dataDir + "input.mpp");
// Remove an exception
Calendar cal = project.getCalendars().toList().get(0);
if (cal.getExceptions().getCount() > 1) {
CalendarException exc = cal.getExceptions().toList().get(0);