Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
ofbiz-directcontrolservlet
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
1eb9d36e
authored
2014-11-12 15:14:48 -0600
by
Ean Schuessler
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
#4364 get the temporary path programmatically
1 parent
d3fa7e5f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/com/brainfood/ofbiz/LibreOfficeRenderer.java
src/com/brainfood/ofbiz/LibreOfficeRenderer.java
View file @
1eb9d36
...
...
@@ -51,7 +51,7 @@ public class LibreOfficeRenderer {
File
outputFile
=
File
.
createTempFile
(
"bfdcs-"
,
"-tmpl"
);
UtilIO
.
writeString
(
outputFile
,
output
.
toString
());
ProcessBuilder
pb
=
new
ProcessBuilder
(
"libreoffice"
,
"--headless"
,
"--convert-to"
,
"pdf"
,
outputFile
.
getPath
(),
"--outdir"
,
"/tmp"
);
ProcessBuilder
pb
=
new
ProcessBuilder
(
"libreoffice"
,
"--headless"
,
"--convert-to"
,
"pdf"
,
outputFile
.
getPath
(),
"--outdir"
,
outputFile
.
getParentFile
().
getPath
()
);
Map
<
String
,
String
>
env
=
pb
.
environment
();
env
.
put
(
"HOME"
,
"/home/ofbiz"
);
env
.
put
(
"USERNAME"
,
"ofbiz"
);
...
...
Please
register
or
sign in
to post a comment