Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set user directory for openoffice processes #125

Merged
merged 2 commits into from
Feb 10, 2020

Conversation

Ilya-c
Copy link
Contributor

@Ilya-c Ilya-c commented Feb 6, 2020

Currently integration starts single openoffice process because -env:UserInstallation parameter isn't set. Setting this parameter allows us to start multiple openoffice processes each with separate port.

Directories for the processes are created in the OfficeIntegration#temporaryDirPath folder. If temporary directory isn't set, parameter won't be used.

Process directories named as ".ooserver_${host}_${port}" for example - ".ooserver_localhost_8100".

Also this pull request contains commit which adds sl4j logging which is useful during openoffice problems debugging:
bdee7e7

@Ilya-c Ilya-c requested a review from andreysubbotin February 6, 2020 14:32
@Ilya-c Ilya-c self-assigned this Feb 6, 2020
@@ -45,7 +45,8 @@
public OfficeConnection(String openOfficePath, Integer port, ProcessManager processManager, OfficeIntegration officeIntegration) {
this.port = port;
this.officeIntegration = officeIntegration;
this.oooServer = new OOServer(openOfficePath, OOServer.getDefaultOOoOptions(), "localhost", port, processManager);
this.oooServer = new OOServer(openOfficePath, OOServer.getDefaultOOoOptions(),
"localhost", port, processManager, officeIntegration);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps you should pass the temp directory name instead of OfficeIntegration?

@andreysubbotin andreysubbotin merged commit 5ac9292 into cuba-platform:release_1_0 Feb 10, 2020
andreysubbotin pushed a commit that referenced this pull request Nov 7, 2020
* Set user directory for the openOffice processes (-env:UserInstallation parameter)
@CLAassistant
Copy link

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants