Sha256: 9a0396fd88559d49c0d699ee603b998981001fbd0681994e1b1ecfd91fbe9b6a

Contents?: true

Size: 724 Bytes

Versions: 1

Compression:

Stored size: 724 Bytes

Contents

module Asposetasksjava
  module GetCalendarExceptions
    def initialize()
        data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'
                
        # Instantiate project object
        project = Rjb::import('com.aspose.tasks.Project').new(data_dir + 'test_tasks.mpp')

        calendars = project.getCalendars().toList()

        i = 0
        while i < calendars.size()
          cal = calendars.get(i)
          calexc = cal.getExceptions().getCount()
          if calexc > 0
            puts "From: " + calexc.getFromDate().toString()
            puts "To: " + calexc.getToDate().toString()
          end
          i +=1
        end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asposetasksjava-0.0.1 lib/asposetasksjava/Calendars/getcalendarexceptions.rb