Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11124

Allow to create single file if both directory and filename is provided by user

    XMLWordPrintableJSON

Details

    Description

      As reported by Jacques

      "Actually the path is missing in line 191 (same for XML, line 190) for Windows to work:

      writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(new FileOutputStream(outpath + "/" + filename), "UTF-8")))

      I also think it should be used for *nix OS, else the file is always written at OFBiz root"

       

      If user provided file name and output directory in that case the entity xml files are generated at both locations.

      As in attached image we have files created at both locations, i.e. at root we have test.xml and in user provided output directory we have multiple files with [entityname].xml. 

      The expected change would be if user provided both output directory and filename then file should be created in given directory with given filename.

       

      Attachments

        1. OFBiz-Web-Tools-XML-Data-Export_BothFilenameAndDir.png
          103 kB
          Jayansh Shinde
        2. OFBIZ-11124.patch
          1 kB
          Jayansh Shinde

        Activity

          People

            jleroux Jacques Le Roux
            jayansh Jayansh Shinde
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: