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
d3fa7e5f
authored
2014-11-12 14:56:49 -0600
by
Ean Schuessler
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use varargs format
1 parent
34197e77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
src/com/brainfood/ofbiz/LibreOfficeRenderer.java
src/com/brainfood/ofbiz/LibreOfficeRenderer.java
View file @
d3fa7e5
...
...
@@ -51,8 +51,7 @@ public class LibreOfficeRenderer {
File
outputFile
=
File
.
createTempFile
(
"bfdcs-"
,
"-tmpl"
);
UtilIO
.
writeString
(
outputFile
,
output
.
toString
());
List
<
String
>
args
=
Arrays
.
asList
(
new
String
[]{
"libreoffice"
,
"--headless"
,
"--convert-to"
,
"pdf"
,
outputFile
.
getPath
(),
"--outdir"
,
"/tmp"
});
ProcessBuilder
pb
=
new
ProcessBuilder
(
args
);
ProcessBuilder
pb
=
new
ProcessBuilder
(
"libreoffice"
,
"--headless"
,
"--convert-to"
,
"pdf"
,
outputFile
.
getPath
(),
"--outdir"
,
"/tmp"
);
Map
<
String
,
String
>
env
=
pb
.
environment
();
env
.
put
(
"HOME"
,
"/home/ofbiz"
);
env
.
put
(
"USERNAME"
,
"ofbiz"
);
...
...
Please
register
or
sign in
to post a comment