mirror of
https://github.com/ArenMg/aren.git
synced 2024-11-21 16:10:52 +00:00
Resolve debate export problem
This commit is contained in:
parent
1ce12f653e
commit
eba6a08a96
1 changed files with 7 additions and 0 deletions
|
@ -104,6 +104,13 @@ public class ODFService {
|
||||||
row.appendChild(commentsList);
|
row.appendChild(commentsList);
|
||||||
|
|
||||||
File file = new File("/tmp/aren_export_" + System.currentTimeMillis() + ".odt");
|
File file = new File("/tmp/aren_export_" + System.currentTimeMillis() + ".odt");
|
||||||
|
|
||||||
|
File directory = new File("/tmp");
|
||||||
|
if (! directory.exists()){
|
||||||
|
directory.mkdir();
|
||||||
|
}
|
||||||
|
|
||||||
|
file.createNewFile();
|
||||||
this.outputDocument.save(file);
|
this.outputDocument.save(file);
|
||||||
return file;
|
return file;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue