git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194271
13f79535-47bb-0310-9956-
ffa450edef68
//set base directory
String baseDir = Configuration.getStringValue("baseDir");
if (baseDir == null) {
- baseDir = new File(clOptions.getInputFile().getAbsolutePath()).getParent();
- Configuration.put("baseDir",baseDir);
+ try {
+ baseDir = new File(clOptions.getInputFile().getAbsolutePath()).getParentFile().toURL().toExternalForm();
+ Configuration.put("baseDir", baseDir);
+ } catch(Exception e) {
+ }
}
if (errorDump) {
MessageHandler.logln("base directory: " + baseDir);