From: Chris Schlaeger (cs_at_suse.de)
Date: Fri Dec 19 2003 - 12:06:59 CET
From: Chris Schlaeger <cs@suse.de> Date: Fri, 19 Dec 2003 12:06:59 +0100 Message-Id: <200312191207.00275.cs@suse.de> Subject: Re: [taskjuggler] XML-report broken in TJ 2.0?
Hi Stefan,
this is indeed a bug in the XML version 1 generator code. It can only handle
projects with 1 toplevel tasks properly. Strange that nobody has reported
this before. You have the following options:
1) Use the XML version 2.
xmlreport "main.txj" { version 2 }
Since the version 1 format will be discontinued some day, this is the best
approach if you don't rely on a program that can only read the version 1
format.
2) Enclose all your tasks in a single toplevel task.
3) Wait for the fixed version. The CVS will most likely be fixed over the
weekend.
Chris
On Thursday 18 December 2003 16:19, Stefan Janecek wrote:
> Hi,
>
> I compiled TJ 2.0 today - without any noticeable errors. However,
> running taskjuggler on the following very simple project file results in
> a somehow strange behaviour...
>
> file main.tjp:
> ---------------------------------------------------------------------
> project myproj "myproj" "1.0" 2003-12-15 2003-12-31 {
> dailyworkinghours 8
> }
>
> resource me "me"
>
> task test1 "test1" {
> allocate me
> start 2003-12-18
> effort 20h
> }
> task test2 "test2" {
> allocate me
> start 2003-12-24
> effort 20h
> }
>
> htmltaskreport "taskreport.html"
> xmlreport "main.tjx"
> -----------------------------------------------------------------------
>
> After running 'taskjuggler main.tjp', the HTML-report is exactly what
> one would expect:
>
> (part of) file taskreport.html:
> -----------------------------------------------------------------------
> <tbody>
> <tr valign="middle" style="background-color:#f3ebae; ">
> <td style="text-align:right; ">1.</td>
> <td nowrap="nowrap" style="padding-left:2; ">test1</td>
> <td style="font-size:90%; ">2003-12-18 09:00</td>
> <td style="font-size:90%; ">2003-12-22 14:00</td>
> </tr>
> <tr valign="middle" style="background-color:#f3ebae; ">
> <td style="text-align:right; ">2.</td>
> <td nowrap="nowrap" style="padding-left:2; ">test2</td>
> <td style="font-size:90%; ">2003-12-24 09:00</td>
> <td style="font-size:90%; ">2003-12-26 14:00</td>
> </tr>
> </tbody>
> -----------------------------------------------------------------------
>
> The XML-reprort, however, is missing the task test2:
>
> file main.tjx:
> -----------------------------------------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE Project>
> <Project Id="myproj" WeekStart="Mon" >
> <Name>myproj</Name>
> <Version>1.0</Version>
> <Priority>500</Priority>
> <start humanReadable="2003-12-15 00:00:00 CET" >1071442800</start>
> <end humanReadable="2003-12-30 23:59:59 CET" >1072825199</end>
> <now humanReadable="2003-12-18 16:08:25 CET" >1071760105</now>
> <Task Id="test1" >
> <Index>1</Index>
> <Name>test1</Name>
> <ProjectID>myproj</ProjectID>
> <Priority>500</Priority>
> <complete>35.0</complete>
> <Type>Task</Type>
> <planStart humanReadable="2003-12-18 09:00:00 CET"
>
> >1071734400</planStart>
>
> <planEnd humanReadable="2003-12-22 14:00:00 CET" >1072098000</planEnd>
> <Allocation ResourceID="me" >
> <Load>0</Load>
> <Persistent>No</Persistent>
> </Allocation>
> <Resource Id="me" >me</Resource>
> </Task>
> </Project>
> -----------------------------------------------------------------------
>
> Errrmmm.... Am I getting something wrong here? Can you reproduce this
> behaviour, or is it just me? Any hints?
>
> Best regards,
> Stefan Janecek
-- KDE 3.1: Conquer your Enterprise Desktop! See http://www.kde.org! GPG Key: 1024D/0500838B A5FE C051 2AFC 9A14 768A 5125 5829 5750 0500 838B
This archive was generated by hypermail 2.1.7 : Fri Dec 19 2003 - 12:07:16 CET