Custom local add-on path
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 91
- Joined: Tue Jul 17, 2018 6:57 am
Custom local add-on path
Post by msambasiva »
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.
-
- Posts: 91
- Joined: Tue Jul 17, 2018 6:57 am
Re: Custom local add-on path
Post by msambasiva »
Hi,
Could you please suggest any clue on this?
Thanks,
Samba.
Could you please suggest any clue on this?
Thanks,
Samba.
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Custom local add-on path
Hi Samba,
You can find out more details about this problem here:
https://github.com/dita-ot/dita-ot/issues/2827
Oxygen's bundled DITA OT has various fixes to inhibit this problem but as you are using your own DITA OT distribution...
Anyway, your plugin's Java code can copy the entire DITA OT folder to a folder which has a shorter path before running the transformation.
Due to restrictions in the Windows operating system, an Oxygen application started by the local end user, without admin rights may not have enough access rights to create a folder directly in the "c:\" drive, it may have rights to create folders only in the current user home.
Regards,
Radu
You can find out more details about this problem here:
https://github.com/dita-ot/dita-ot/issues/2827
Oxygen's bundled DITA OT has various fixes to inhibit this problem but as you are using your own DITA OT distribution...
Anyway, your plugin's Java code can copy the entire DITA OT folder to a folder which has a shorter path before running the transformation.
Due to restrictions in the Windows operating system, an Oxygen application started by the local end user, without admin rights may not have enough access rights to create a folder directly in the "c:\" drive, it may have rights to create folders only in the current user home.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service