<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.commandline.executor.service.soffice.override">

  <require>org.nuxeo.ecm.platform.commandline.executor.service.soffice</require>

  <extension point="command" target="org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent">
    <command enabled="true" name="soffice">
      <commandLine>soffice</commandLine>
      <winCommand>soffice.exe</winCommand>
      <parameterString>--headless --norestore --writer --convert-to #{format} #{sourceFilePath} --outdir #{outDirPath} -env:UserInstallation=#{userInstallation}</parameterString>
      <testParameterString>--version</testParameterString>
      <winTestParameterString>--headless --cat test</winTestParameterString>
      <installationDirective>You need to install LibreOffice and add soffice to the PATH environment variable.
      </installationDirective>
    </command>
  </extension>

</component>
