lib/TaskJuggler.rb in taskjuggler-0.0.2 vs lib/TaskJuggler.rb in taskjuggler-0.0.3
- old
+ new
@@ -39,11 +39,11 @@
@project = nil
parser = ProjectFileParser.new(@messageHandler)
files.each do |file|
begin
- parser.open(file)
+ parser.open(file, master)
rescue TjException
Log.exit('parser')
return false
end
if master
@@ -71,10 +71,11 @@
end
# Generate all specified reports. The project must have be scheduled before
# this method can be called. It returns true if no error occured, false
# otherwise.
- def generateReports
+ def generateReports(outputDir)
+ @project.outputDir = outputDir
Log.enter('reports', 'Generating reports ...')
res = @project.generateReports(@maxCpuCores)
Log.exit('reports')
res
end