Sha256: 6685a4c80797d7e662c685fb85082f6e56a1a13f948d50b42e510a232479faff

Contents?: true

Size: 608 Bytes

Versions: 1

Compression:

Stored size: 608 Bytes

Contents

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

    	pred = project.getRootTask().getChildren().add("Task 1")
    	succ = project.getRootTask().getChildren().add("Task 2")
    	link = project.getTaskLinks().add(pred, succ)
        link.setLinkType(Rjb::import('com.aspose.tasks.TaskLinkType').StartToStart)

		puts "Defined task link type."
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asposetasksjava-0.0.1 lib/asposetasksjava/TaskLinks/definelinktype.rb