Open GoogleCodeExporter opened 9 years ago
Let me change the type because I can't agree that broken files produced by some
other tool are a bug of GanttProject.
Original comment by dbarashev
on 17 Sep 2010 at 12:27
== Short History ==
A user of 'rmtoo' wants to transfer data from 'rmtoo' into
ganttproject. IMHO this makes sense and might be very helpful.
AFAIK ganttproject import functionality is somewhat limited to TEXT
files - importing e.g. dependencies is not possible.
The only file format which can handle things like dependencies is the
XML format. Therefore a 'rmtoo' output module was written using
ganttproject XML file format.
== Formal argumentation ==
I'm not really sure what 'a broken file' for ganttproject is:
I did not find any documentation about the input/output format of
ganttproject. Therefore I downloaded the sources and had a closer
look.
There is a file './ganttproject/data/resources/dtd/ganttproject.dtd'
where a lot attributes are marked as 'required' - but IMHO the file is
never used/referenced. (In the GanttOptions.java is a relict - but it
is not used.)
Therefore the only 'real' documentation is the source code. Example
from TaskTagHandler.java:
String duration = attrs.getValue("duration");
if (duration != null) {
....
There is no else case - no info/warning/error is printed when the
attribute is not available. Therefore it was assumed that duration is
optional.
== Substantive argumentation ==
It is mostly impossible for other programs to compute the correct
duration without re-implementing parts of ganttproject.
== Suggestion ==
IMHO it's only a small change to ganttproject itself to handle tasks
without duration - which would make things for 'external' tools much
easier.
Alternatively it would be great to have a well defined and simple way
to import structured data into ganttproject.
Original comment by floma...@gmail.com
on 17 Sep 2010 at 2:21
I didn't say that I won't take any action on that.
Original comment by dbarashev
on 17 Sep 2010 at 11:49
I didn't say that I won't take any action on that.
Original comment by dbarashev
on 17 Sep 2010 at 11:49
Original issue reported on code.google.com by
floma...@gmail.com
on 17 Sep 2010 at 12:02Attachments: