Custom local add-on path
Posted: Fri Jun 25, 2021 11:30 am
Hi,
Oxygen Editor 23.0
DITA OT 3.x
We created a oxygen plugin to use custom dita-ot.
The custom dita-ot getting downloaded into the below path which is too long.
C:\Users\smedavar.AAAAA\AppData\Roaming\com.oxygenxml\extensions\v23.0\plugins\http_slcalz.us.bbbbb.com_7Euaework_oxygen_addons_uae_updateSite.xml\uae-plugin-ditaot-package
Code snippet to start a transformation process:
String ditaExecutablePath = PluginWorkspaceProvider.getPluginWorkspace().getUtilAccess().expandEditorVariables("${pluginDir(uae.plugin.ditaot.package)}", null) + "/DOT/DITA-OT3.x/bin" ;
//Success tranformation with below hardcoded path
//String ditaExecutablePath = "C:/uae-plugin-ditaot-package/DOT/DITA-OT3.x/bin"
File ditaExecPath = new File(ditaExecutablePath);
PluginWorkspaceProvider.getPluginWorkspace().startProcess(
"Dita Conversion",
ditaExecPath, cmdString,true);
Getting below error message with the DITA-OT transformation,
The input line is too long.
The syntax of the command is incorrect.
Process ended with exit code: 255
I got successful transformation with short path.
Can we customize the download path to short length some thing below,
C:/temp/uae-plugin-ditaot-package/DOT/DITA-OT3.x/bin
Thanks in advance,
Samba.
Oxygen Editor 23.0
DITA OT 3.x
We created a oxygen plugin to use custom dita-ot.
The custom dita-ot getting downloaded into the below path which is too long.
C:\Users\smedavar.AAAAA\AppData\Roaming\com.oxygenxml\extensions\v23.0\plugins\http_slcalz.us.bbbbb.com_7Euaework_oxygen_addons_uae_updateSite.xml\uae-plugin-ditaot-package
Code snippet to start a transformation process:
String ditaExecutablePath = PluginWorkspaceProvider.getPluginWorkspace().getUtilAccess().expandEditorVariables("${pluginDir(uae.plugin.ditaot.package)}", null) + "/DOT/DITA-OT3.x/bin" ;
//Success tranformation with below hardcoded path
//String ditaExecutablePath = "C:/uae-plugin-ditaot-package/DOT/DITA-OT3.x/bin"
File ditaExecPath = new File(ditaExecutablePath);
PluginWorkspaceProvider.getPluginWorkspace().startProcess(
"Dita Conversion",
ditaExecPath, cmdString,true);
Getting below error message with the DITA-OT transformation,
The input line is too long.
The syntax of the command is incorrect.
Process ended with exit code: 255
I got successful transformation with short path.
Can we customize the download path to short length some thing below,
C:/temp/uae-plugin-ditaot-package/DOT/DITA-OT3.x/bin
Thanks in advance,
Samba.