This specialization of ReportBase implements an export of the project data in the TJP syntax format.
Create a new object and set some default values.
# File lib/taskjuggler/reports/TjpExportRE.rb, line 21 def initialize(report) super(report) @supportedTaskAttrs = %( booking complete depends flags maxend maxstart minend minstart note priority projectid responsible ) @supportedResourceAttrs = %( booking flags shifts vacation workinghours ) end
# File lib/taskjuggler/reports/TjpExportRE.rb, line 30 def generateIntermediateFormat super end
Return the project data in TJP syntax format.
# File lib/taskjuggler/reports/TjpExportRE.rb, line 35 def to_tjp # Prepare the resource list. @resourceList = PropertyList.new(@project.resources) @resourceList.setSorting(a('sortResources')) @resourceList = filterResourceList(@resourceList, nil, a('hideResource'), a('rollupResource'), a('openNodes')) @resourceList.sort! # Prepare the task list. @taskList = PropertyList.new(@project.tasks) @taskList.setSorting(a('sortTasks')) @taskList = filterTaskList(@taskList, nil, a('hideTask'), a('rollupTask'), a('openNodes')) @taskList.sort! getBookings @file = '' generateProjectProperty if a('definitions').include?('project') generateFlagDeclaration if a('definitions').include?('flags') generateProjectIDs if a('definitions').include?('projectids') generateShiftList if a('definitions').include?('shifts') generateResourceList if a('definitions').include?('resources') generateTaskList if a('definitions').include?('tasks') generateTaskAttributes unless a('taskAttributes').empty? generateResourceAttributes unless a('resourceAttributes').empty? @file end
Generated with the Darkfish Rdoc Generator 2.