comparison src/java/de/intevation/mxd/Converter.java @ 28:0e71a1f71ec0

Added parameter for MXD filename.
author Raimund Renkert <rrenkert@intevation.de>
date Fri, 08 Apr 2011 17:33:04 +0200
parents cbd67b1100d8
children c51376f8e24c
comparison
equal deleted inserted replaced
27:e5fdc37f8f94 28:0e71a1f71ec0
63 /** 63 /**
64 * Entrypoint for the application. 64 * Entrypoint for the application.
65 */ 65 */
66 public static void main(String[] args) { 66 public static void main(String[] args) {
67 try{ 67 try{
68
68 IReader reader = new MXDReader(); 69 IReader reader = new MXDReader();
69 reader.init(); 70 reader.init();
70 // reader.setFilename("testdata/SubsurfaceSediments-Internet.mxd"); 71
71 // reader.setFilename("testdata/p_single_4pt_c255-0-0.mxd"); 72 String path = System.getProperty("mxd.file");
72 // reader.setFilename("testdata/Facilities-Internet.mxd"); 73 if (path.equals("${MXDFILE}")) {
73 // reader.setFilename("testdata/fernerkundung_albedo.mxd"); 74 System.out.println("No valid MXD file. Use ant parameter" +
74 reader.setFilename("testdata/gevu.mxd"); 75 " \"-DMXDFILE=path/to/file.mxd\".");
76 System.exit(-1);
77 }
78 reader.setFilename(path);
75 79
76 reader.read(); 80 reader.read();
77 reader.shutdown(); 81 reader.shutdown();
78 } 82 }
79 catch(IOException e){ 83 catch(IOException e){
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)