Sha256: 386d15f244326871ecb1aaea7dc750586507b3ef05822329dade75b43569755c

Contents?: true

Size: 625 Bytes

Versions: 1

Compression:

Stored size: 625 Bytes

Contents

module Asposetasksjava
  module ChangeProgressOfTask
    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

        puts project.getCalculationMode()

        task = project.getRootTask().getChildren().add("Task")

        tsk = Rjb::import('com.aspose.tasks.Tsk')

        task.set(tsk.DURATION, project.getDuration(2))

        task.set(tsk.PERCENT_COMPLETE, 50)

        puts "Changed progress of task."
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asposetasksjava-0.0.1 lib/asposetasksjava/Tasks/changeprogressoftask.rb