Sha256: d2a4f522f64974d4cc7303247befaf368774716500579e951eb8c277527619fb
Contents?: true
Size: 972 Bytes
Versions: 1
Compression:
Stored size: 972 Bytes
Contents
module Asposetasksjava module TasksPercentage 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 + 'project.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.get(tsk.PERCENT_COMPLETE).toString() puts task.get(tsk.PERCENT_WORK_COMPLETE).toString() puts task.get(tsk.PHYSICAL_PERCENT_COMPLETE).toString() 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/taskspercentage.rb |