source: trunk/greenstone3-extensions/gs3build/src/org/greenstone/gsdl3/gs3build/GSDataDump.java@ 12188

Last change on this file since 12188 was 12188, checked in by kjdon, 18 years ago

Initial revision

  • Property svn:keywords set to Author Date Id Revision
File size: 565 bytes
Line 
1package org.greenstone.gsdl3.gs3build;
2
3import java.io.File;
4
5import org.greenstone.gsdl3.gs3build.doctypes.*;
6
7import org.greenstone.gsdl3.gs3build.database.GS3SQLConnection;
8import org.greenstone.gsdl3.gs3build.database.GS3SQLConnectionFactory;
9
10public class GSDataDump
11{
12 public static void main(String args[])
13 {
14 String database = args[0];
15
16 GS3SQLConnection connection = GS3SQLConnectionFactory.getGS3SQLConnection(database);
17 DocumentList docList = DocumentList.readSQLDocuments(connection);
18 docList.writeDocuments(new File(database));
19 }
20}
Note: See TracBrowser for help on using the repository browser.