Sha256: 725744b3ba78ecffc9117523bc1d765a1249a531e3874d8c0def35f6155332ff
Contents?: true
Size: 844 Bytes
Versions: 1
Compression:
Stored size: 844 Bytes
Contents
module Asposetasksjava module AddCalendarException 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') cal = project.getCalendars().toList().get(0) # Add an exception calExc = Rjb::import('com.aspose.tasks.CalendarException').new calObject = Rjb::import('java.util.Calendar').getInstance() calObject.set(2009, 1, 1, 0, 0, 0) calExc.setFromDate(calObject.getTime()) calObject.set(2009, 1, 3, 0, 0, 0) calExc.setToDate(calObject.getTime()) cal.getExceptions().add(calExc) puts "Added calendar excpetion." end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asposetasksjava-0.0.1 | lib/asposetasksjava/Calendars/addcalendarexception.rb |