Sha256: be6320da46106366f0116568705df62cf078a770548dd0ced3a91dc02d8895f3
Contents?: true
Size: 995 Bytes
Versions: 1
Compression:
Stored size: 995 Bytes
Contents
module Asposetasksjava module ParentAndChildTasks def initialize() # Getting Parent and Child Tasks get_parent_and_child_tasks() end def get_parent_and_child_tasks() 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') # Create a ChildTasksCollector instance collector = Rjb::import('com.aspose.tasks.ChildTasksCollector').new # Collect all the tasks from RootTask using TaskUtils Rjb::import('com.aspose.tasks.TaskUtils').apply(project.getRootTask(), collector, 0) tsk = Rjb::import('com.aspose.tasks.Tsk') tasks = collector.getTasks() # Parse through all the collected tasks i = 0 while i < tasks.size() task = tasks.get(i) puts "Task Name = " + task.get(tsk.NAME).to_string i +=1 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asposetasksjava-0.0.1 | lib/asposetasksjava/Tasks/parentandchildtasks.rb |