[taskjuggler] Re: Big project: define html reports in a common file for all projects!

From: h_dk (hanneloredk_at_yucom.be)
Date: Fri Aug 05 2005 - 00:01:51 CEST


From: h_dk <hanneloredk@yucom.be>
Message-Id: <20050804220151.B73F42731024@einstein.suse.de>
Date: Fri,  5 Aug 2005 00:01:51 +0200 (CEST)
Subject: [taskjuggler] Re: Big project: define html reports in a common file for all projects!


Hi,

This is a draft for a 'Reports.tji' file for the Common folder in the Big Project.

#Some reports may be usefull for many different projects
#In stead of specifying the report in each project file separately, you can do this once in a common file

#By putting the report specification into a macro, you can call it with variables.
#This will also make sure the html report is created in the same directory as the project file

macro Accounting [

htmlaccountreport "Accounting.html" {
  columns no, name, total, monthly

# ${1} is the first argument given when you call the macro in the project file
# Here the variable contains the name of the project

        headline "P&L for the ${1} project"
        caption "The table shows the profit and loss analysis as well as the
                 cashflow situation of the ${1} Project."
  accumulate
        scenarios plan, delayed
}

]

This could be added to the end of the file Project2.tjp

#Instead of repeating the specifications of your html reports in each file,
#you can include a file with common report specifications
include "../Common/Reports.tji"{}

#The optional curly braces {} must be supplied here,
#because the macro defined in the included file is called immediately afterwards

${Accounting "Project"}

It's just a suggestion.

hdk

-- 
To unsubscribe, email the address listed in the List-Unsubscribe header
For additional commands, email: taskjuggler-help@suse.com


This archive was generated by hypermail 2.1.7 : Fri Aug 05 2005 - 00:01:56 CEST