You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ke...@apache.org on 2001/06/05 14:55:20 UTC

cvs commit: xml-fop/src/org/apache/fop/apps Options.java

keiron      01/06/05 05:55:20

  Modified:    src/org/apache/fop/apps Options.java
  Log:
  sets baseDir to a URL string rather than a file path string
  
  Revision  Changes    Path
  1.4       +5 -2      xml-fop/src/org/apache/fop/apps/Options.java
  
  Index: Options.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/apps/Options.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Options.java	2001/04/12 00:12:43	1.3
  +++ Options.java	2001/06/05 12:55:18	1.4
  @@ -98,8 +98,11 @@
   	//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);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org