You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jayansh Shinde (JIRA)" <ji...@apache.org> on 2019/06/25 09:39:00 UTC

[jira] [Commented] (OFBIZ-11124) Allow to create single file if both directory and filename is provided by user

    [ https://issues.apache.org/jira/browse/OFBIZ-11124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16872199#comment-16872199 ] 

Jayansh Shinde commented on OFBIZ-11124:
----------------------------------------

Hi Jacques, 

I also had attached a patch, when I created this issue, this is similar we do in JSON, please have a look. 

Thanks,

Jay

 

> Allow to create single file if both directory and filename is provided by user
> ------------------------------------------------------------------------------
>
>                 Key: OFBIZ-11124
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11124
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework/webtools
>            Reporter: Jayansh Shinde
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: OFBIZ-11124.patch, OFBiz-Web-Tools-XML-Data-Export_BothFilenameAndDir.png
>
>
> 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.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)