forked from joniles/mpxj
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhowto-read-ganttproject.html
130 lines (126 loc) · 7.11 KB
/
howto-read-ganttproject.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<!--
| Generated by Apache Maven Doxia Site Renderer 1.7.4
| Rendered using Apache Maven Fluido Skin 1.6
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Language" content="en" />
<title>MPXJ – How To: Read GanttProject files</title>
<link rel="stylesheet" href="./css/apache-maven-fluido-1.6.min.css" />
<link rel="stylesheet" href="./css/site.css" />
<link rel="stylesheet" href="./css/print.css" media="print" />
<script type="text/javascript" src="./js/apache-maven-fluido-1.6.min.js"></script>
<!-- Google Analytics -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-7202224-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body class="topBarDisabled">
<a href="https://github.com/joniles/mpxj">
<img style="position: absolute; top: 0; right: 0; border: 0; z-index: 10000;"
src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png"
alt="Fork me on GitHub">
</a>
<div class="container-fluid">
<div id="banner">
<div class="pull-left"><div id="bannerLeft"><h2>MPXJ</h2>
</div>
</div>
<div class="pull-right"></div>
<div class="clear"><hr/></div>
</div>
<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate">Last Published: 2018-10-23</li>
</ul>
</div>
<div class="row-fluid">
<div id="leftColumn" class="span3">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header">MPXJ</li>
<li><a href="index.html" title="Overview"><span class="none"></span>Overview</a> </li>
<li><a href="changes-report.html" title="Changes"><span class="none"></span>Changes</a> </li>
<li><a href="getting-started.html" title="Getting started..."><span class="icon-chevron-right"></span>Getting started...</a> </li>
<li><a href="howto-read.html" title="How to read..."><span class="icon-chevron-down"></span>How to read...</a>
<ul class="nav nav-list">
<li><a href="howto-read-mpx.html" title="MPX files"><span class="none"></span>MPX files</a> </li>
<li><a href="howto-read-mpp.html" title="MPP files"><span class="none"></span>MPP files</a> </li>
<li><a href="howto-read-mspdi.html" title="MSPDI files"><span class="none"></span>MSPDI files</a> </li>
<li><a href="howto-read-mpd.html" title="MPD files"><span class="none"></span>MPD files</a> </li>
<li><a href="howto-read-planner.html" title="Planner files"><span class="none"></span>Planner files</a> </li>
<li><a href="howto-read-asta.html" title="Asta files"><span class="none"></span>Asta files</a> </li>
<li><a href="howto-read-p3.html" title="P3 files"><span class="none"></span>P3 files</a> </li>
<li><a href="howto-read-suretrak.html" title="SureTrak files"><span class="none"></span>SureTrak files</a> </li>
<li><a href="howto-read-turboproject.html" title="TurboProject files"><span class="none"></span>TurboProject files</a> </li>
<li><a href="howto-read-projectlibre.html" title="ProjectLibre files"><span class="none"></span>ProjectLibre files</a> </li>
<li><a href="howto-read-fasttrack.html" title="FastTrack files"><span class="none"></span>FastTrack files</a> </li>
<li class="active"><a href="#"><span class="none"></span>GanttProject files</a>
</li>
<li><a href="howto-read-phoenix.html" title="Phoenix files"><span class="none"></span>Phoenix files</a> </li>
<li><a href="howto-read-pmxml.html" title="PMXML files"><span class="none"></span>PMXML files</a> </li>
<li><a href="howto-primavera.html" title="P6 databases"><span class="none"></span>P6 databases</a> </li>
<li><a href="howto-read-xer.html" title="XER files"><span class="none"></span>XER files</a> </li>
<li><a href="howto-read-merlin.html" title="Merlin files"><span class="none"></span>Merlin files</a> </li>
<li><a href="howto-read-conceptdraw.html" title="ConceptDraw PROJECT files"><span class="none"></span>ConceptDraw PROJECT files</a> </li>
<li><a href="howto-read-synchro.html" title="Synchro Scheduler files"><span class="none"></span>Synchro Scheduler files</a> </li>
</ul>
</li>
<li><a href="howto-write.html" title="How to write..."><span class="icon-chevron-right"></span>How to write...</a> </li>
<li><a href="faq.html" title="FAQ"><span class="none"></span>FAQ</a> </li>
<li><a href="users.html" title="Users"><span class="none"></span>Users</a> </li>
<li><a href="roadmap.html" title="Roadmap"><span class="none"></span>Roadmap</a> </li>
<li class="nav-header">Project Documentation</li>
<li><a href="project-info.html" title="Project Information"><span class="icon-chevron-right"></span>Project Information</a> </li>
<li><a href="project-reports.html" title="Project Reports"><span class="icon-chevron-right"></span>Project Reports</a> </li>
</ul>
<hr />
<div id="poweredBy">
<div class="clear"></div>
<div class="clear"></div>
<div class="clear"></div>
<div class="clear"></div>
<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy"><img class="builtBy" alt="Built by Maven" src="./images/logos/maven-feather.png" /></a>
</div>
</div>
</div>
<div id="bodyColumn" class="span9" >
<div class="section">
<h2><a name="How_To:_Read_GanttProject_files"></a>How To: Read GanttProject files</h2>
<p>GanttProject writes schedule data to GAN files (which are actually just XML files).</p>
<div class="section">
<h3><a name="Reading_GAN_files"></a>Reading GAN files</h3>
<p>The simplest way to read a GAN file is to use the <tt>UniversalProjectReader</tt>:</p>
<div class="source">
<div class="source"><pre class="prettyprint">import net.sf.mpxj.ProjectFile;
import net.sf.mpxj.reader.UniversalProjectReader;
...
UniversalProjectReader reader = new UniversalProjectReader();
ProjectFile project = reader.read("my-sample.gan");
</pre></div></div>
<p>You can work directly with the <tt>GanttProjectReader</tt> by replacing <tt>UniversalProjectReader</tt> with <tt>GanttProjectReader</tt>, although this offers no particular advantage as there are no additional configuration settings available on the <tt>GanttProjectReader</tt> class.</p></div></div>
</div>
</div>
</div>
<hr/>
<footer>
<div class="container-fluid">
<div class="row-fluid">
<p>Copyright ©2000–2018
<a href="http://mpxj.org">Packwood Software</a>.
All rights reserved.</p>
</div>
</div>
</footer>
</body>
</html>