Mercurial > mxd2map
comparison src/java/de/intevation/mxd/Converter.java @ 260:10e0aa283217
Updated documentation and added ant task for javadoc generation.
author | raimund renkert <raimund.renkert@intevation.de> |
---|---|
date | Tue, 16 Aug 2011 14:32:06 +0200 |
parents | 5c80058c08f6 |
children | dbfcb0b69a63 |
comparison
equal
deleted
inserted
replaced
259:8fe9ccc77962 | 260:10e0aa283217 |
---|---|
145 "General error." + | 145 "General error." + |
146 " See logging file for more information."); | 146 " See logging file for more information."); |
147 } | 147 } |
148 } | 148 } |
149 | 149 |
150 | |
151 /** | |
152 * Reads a property value from the converter.properties file. | |
153 * | |
154 * @param key The property key. | |
155 * | |
156 * @return The value. | |
157 */ | |
150 private static String readProperty (String key) | 158 private static String readProperty (String key) |
151 throws Exception { | 159 throws Exception { |
152 Properties properties = new Properties(); | 160 Properties properties = new Properties(); |
153 BufferedInputStream stream = | 161 BufferedInputStream stream = |
154 new BufferedInputStream( | 162 new BufferedInputStream( |
156 ); | 164 ); |
157 properties.load(stream); | 165 properties.load(stream); |
158 stream.close(); | 166 stream.close(); |
159 return properties.getProperty(key); | 167 return properties.getProperty(key); |
160 } | 168 } |
169 | |
170 | |
161 /** | 171 /** |
162 * Trys to load the Log4j configuration | 172 * Trys to load the Log4j configuration |
163 * from ${config.dir}/log4j.properties. | 173 * from ${config.dir}/log4j.properties. |
164 */ | 174 */ |
165 public static final void configureLogging() { | 175 public static final void configureLogging() { |
174 } | 184 } |
175 } | 185 } |
176 } | 186 } |
177 | 187 |
178 | 188 |
189 /** | |
190 * Print out usage informations. | |
191 */ | |
179 private static void printUsage() { | 192 private static void printUsage() { |
180 System.out.println("Available parameters:[{-m,--mxd} path/to/mxd]\n" + | 193 System.out.println("Available parameters:[{-m,--mxd} path/to/mxd]\n" + |
181 "\t\t[{-a,--map} path/to/mapfile]\n" + | 194 "\t\t[{-a,--map} path/to/mapfile]\n" + |
182 "\t\t[{-t,--template} path/to/template]"); | 195 "\t\t[{-t,--template} path/to/template]"); |
183 } | 196 } |