This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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); |