ANT with DITA-OT 2.2.2
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 316
- Joined: Wed Jun 17, 2015 10:19 am
ANT with DITA-OT 2.2.2
Post by ann.jensen »
Hi,
Having previously been transforming my DITA using Oxygen 17.1 and DITA-OT 1.8.5 I have pulled down Oxygen 18 and DITA-OT 2.2.2.
I see that DITA-OT 2.2.2 does not contain a tools folder with ANT like DITA-OT 1.8.5.
Does this mean I need to download and configure ANT separately?
Any advice appreciated,
Regards,
Ann
Having previously been transforming my DITA using Oxygen 17.1 and DITA-OT 1.8.5 I have pulled down Oxygen 18 and DITA-OT 2.2.2.
I see that DITA-OT 2.2.2 does not contain a tools folder with ANT like DITA-OT 1.8.5.
Does this mean I need to download and configure ANT separately?
Any advice appreciated,
Regards,
Ann
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: ANT with DITA-OT 2.2.2
Hi Ann,
Indeed there have been changes in folder structure between DITA OT 1.8 and 2.x. DITA OT 2.x contains its bundled ANT libraries in its "lib" folder and the "ant" executables are in its "bin" folder.
But whenever you are publishing from Oxygen, you are using the ANT libraries which are bundled with Oxygen. So even if the DITA OT comes with an ANT set of libraries, they are not used by default.
Regards,
Radu
Indeed there have been changes in folder structure between DITA OT 1.8 and 2.x. DITA OT 2.x contains its bundled ANT libraries in its "lib" folder and the "ant" executables are in its "bin" folder.
But whenever you are publishing from Oxygen, you are using the ANT libraries which are bundled with Oxygen. So even if the DITA OT comes with an ANT set of libraries, they are not used by default.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 316
- Joined: Wed Jun 17, 2015 10:19 am
Re: ANT with DITA-OT 2.2.2
Post by ann.jensen »
Thanks Radu,
I am trying to transform using the new webhelp-responsive output outside of Oxygen using Dita-OT 2.2.2 and Oxygen 18 but keep running in to Java memory issues
I have set the JAVA_OPTS system variable to -Xms512m -Xmx2048m.
Have you any exposure to this problem with webhelp-responsive transtype?
thanks in advance,
Ann
I am trying to transform using the new webhelp-responsive output outside of Oxygen using Dita-OT 2.2.2 and Oxygen 18 but keep running in to Java memory issues
Code: Select all
Error: The following error occurred while executing this line:
C:\DITA\dita-ot-2.2.2\plugins\org.dita.base\build_preprocess.xml:42: java.lang.O
utOfMemoryError: Java heap space
Have you any exposure to this problem with webhelp-responsive transtype?
thanks in advance,
Ann
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: ANT with DITA-OT 2.2.2
Hi Ann,
How exactly are you starting the external DITA OT?
It might be possible that your system variable is not used by the script.
Regards,
Radu
How exactly are you starting the external DITA OT?
It might be possible that your system variable is not used by the script.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 316
- Joined: Wed Jun 17, 2015 10:19 am
Re: ANT with DITA-OT 2.2.2
Post by ann.jensen »
Hi Radu,
I am following the information at http://www.oxygenxml.com/doc/versions/1 ... lugin.html.
So I am running.
Thanks,
Ann
I am following the information at http://www.oxygenxml.com/doc/versions/1 ... lugin.html.
So I am running
Code: Select all
DITA_OT_DIR\bin\dita.bat -i path_to_input.ditamap -f webhelp-responsive
Thanks,
Ann
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: ANT with DITA-OT 2.2.2
Hi Ann,
So if you open the "dita.bat" in Oxygen, at some point it starts ANT:
so it seems to look at an env variable called ANT_OPTS which you could set up to have that Xmx value. Or you can modify the dita.bat directly like:
"%_JAVACMD%" %ANT_OPTS% -Xms512m -Xmx2048m -classpath ........
Regards,
Radu
So if you open the "dita.bat" in Oxygen, at some point it starts ANT:
Code: Select all
"%_JAVACMD%" %ANT_OPTS% -classpath .........
"%_JAVACMD%" %ANT_OPTS% -Xms512m -Xmx2048m -classpath ........
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: ANT with DITA-OT 2.2.2
Oh, found this also documented in the DITA OT documentation:
http://www.dita-ot.org/dev/user-guide/i ... e-jvm.html
Regards,
Radu
http://www.dita-ot.org/dev/user-guide/i ... e-jvm.html
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 316
- Joined: Wed Jun 17, 2015 10:19 am
Re: ANT with DITA-OT 2.2.2
Post by ann.jensen »
Ok, I had changed my Java install to another but after resetting to jdk1.7.0 my Java memory issues have resolved. I think it is because the newer version jdk1.8.0 was installed in a different folder location that is security restricted...I think.
Anyway it is building now thankfully.
I would now like to incorporate the new tree skin that I have created and can use from within Oxygen. Can you advice how I set the various parameters which I set inside dita.bat for Dita-Ot 1.8.5?
I am not sure of the syntax of this new dita.bat in C:\DITA\dita-ot-2.2.2\bin.
Any advice appreciated,
Regards,
Ann
Anyway it is building now thankfully.
I would now like to incorporate the new tree skin that I have created and can use from within Oxygen. Can you advice how I set the various parameters which I set inside dita.bat for Dita-Ot 1.8.5?
I am not sure of the syntax of this new dita.bat in C:\DITA\dita-ot-2.2.2\bin.
Any advice appreciated,
Regards,
Ann
-
- Posts: 316
- Joined: Wed Jun 17, 2015 10:19 am
Re: ANT with DITA-OT 2.2.2
Post by ann.jensen »
Sorry Radu, every time I pose a question I am finding the answer. I see the options for dita.bat by running with no args.
So now I am running
My transform is working but it does not appear to be picking up on my customised skin.css from
Any advice on why it is not finding/applying this?
Thanks again,
Ann
Code: Select all
dita.bat
So now I am running
Code: Select all
dita.bat -i C:\DevBranches\SystemDocumentation\development\AGS_DocumentationIt16_3\supermap_AGS.ditamap -f webhelp-responsive -filter C:\DevBranches\SystemDocumentation\development\AGS_DocumentationIt16_3\ditavals\m_ags_filter.ditaval -Dwebhelp.responsive.template.name=bootstrap -Dwebhelp.responsive.variant.name=tree -Dwebhelp.responsive.skin.name=ags -Ddita.input.valfile=C:\DevBranches\SystemDocumentation\development\AGS_DocumentationIt16_3\ditavals\m_ags_filter.ditaval -Dargs.breadcrumbs=yes -0 C:\DevBranches\SystemDocumentation\development\AGS_DocumentationIt16_3\out\webhelp-responsive-Dwebhelp.logo.image=C:\DevBranches\SystemDocumentation\development\AGS_DocumentationIt16_3/Aspen_Grove_Solutions.png -Dwebhelp.show.side.toc=no -Dwebhelp.show.top.menu=yes
Code: Select all
C:\DITA\dita-ot-2.2.2\plugins\com.oxygenxml.webhelp\templates\dita\bootstrap\variants\tree\ags
Thanks again,
Ann
-
- Posts: 222
- Joined: Tue Jul 01, 2014 11:48 am
Re: ANT with DITA-OT 2.2.2
Post by bogdan_cercelaru »
Hello,
I've tested with the DITA-OT 2.2.2 and Oxygen XML WebHelp plugin and I wasn't able to reproduce this issue.
Please check if the output folder contains the "oxygen-webhelp\template\variants\tree\ags" directory.
Regards,
Bogdan
I've tested with the DITA-OT 2.2.2 and Oxygen XML WebHelp plugin and I wasn't able to reproduce this issue.
Please check if the output folder contains the "oxygen-webhelp\template\variants\tree\ags" directory.
Regards,
Bogdan
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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