Sha256: 95e79bb403a73329b922474de9f2defb7a04604a66f4e53210d82180b0c94285
Contents?: true
Size: 567 Bytes
Versions: 1
Compression:
Stored size: 567 Bytes
Contents
module Asposetasksjava module CreateResourceAssignment 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') task = project.getRootTask().getChildren().add("Task") rsc = project.getResources().add("Rsc") assn = project.getResourceAssignments().add(task, rsc) puts "Created resource assignment." end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asposetasksjava-0.0.1 | lib/asposetasksjava/ResourceAssignments/createresourceassignment.rb |