net.sf.mpxj.sample
Class PrimaveraConvert
java.lang.Object
net.sf.mpxj.sample.PrimaveraConvert
public final class PrimaveraConvert
- extends Object
This utility is design simply to illustrate the use of the
PrimaveraReader class. Example commend line:
PrimaveraConvert "net.sourceforge.jtds.jdbc.Driver" "jdbc:jtds:sqlserver://localhost/PMDB;user=pmdb;password=pmdb" 1 "c:\temp\project1.xml"
This assumes the use of the JTDS JDBC driver to access the PMDB database on
a local SQL Server instance. The project with ID=1 is exported to
an MSPDI file.
|
Method Summary |
static void |
main(String[] args)
Main method. |
void |
process(String driverClass,
String connectionString,
String projectID,
String outputFile)
Extract Primavera project data and export in another format. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrimaveraConvert
public PrimaveraConvert()
main
public static void main(String[] args)
- Main method.
- Parameters:
args - array of command line arguments
process
public void process(String driverClass,
String connectionString,
String projectID,
String outputFile)
throws Exception
- Extract Primavera project data and export in another format.
- Parameters:
driverClass - JDBC driver class nameconnectionString - JDBC connection stringprojectID - projet IDoutputFile - output file
- Throws:
Exception
Copyright © 2012. All Rights Reserved.