ANT with DITA-OT 2.2.2

Post here questions and problems related to editing and publishing DITA content.
ann.jensen
Posts: 293
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
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: ANT with DITA-OT 2.2.2

Post by Radu »

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
ann.jensen
Posts: 293
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

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
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
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: ANT with DITA-OT 2.2.2

Post by Radu »

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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
ann.jensen
Posts: 293
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

Code: Select all

DITA_OT_DIR\bin\dita.bat -i path_to_input.ditamap -f webhelp-responsive
.
Thanks,
Ann
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: ANT with DITA-OT 2.2.2

Post by Radu »

Hi Ann,

So if you open the "dita.bat" in Oxygen, at some point it starts ANT:

Code: Select all

"%_JAVACMD%" %ANT_OPTS% -classpath .........
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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: ANT with DITA-OT 2.2.2

Post by Radu »

Oh, found this also documented in the DITA OT documentation:

http://www.dita-ot.org/dev/user-guide/i ... e-jvm.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
ann.jensen
Posts: 293
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
ann.jensen
Posts: 293
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

Code: Select all

dita.bat
with no args.
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
My transform is working but it does not appear to be picking up on my customised skin.css from

Code: Select all

C:\DITA\dita-ot-2.2.2\plugins\com.oxygenxml.webhelp\templates\dita\bootstrap\variants\tree\ags
Any advice on why it is not finding/applying this?
Thanks again,
Ann
bogdan_cercelaru
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
Bogdan Cercelaru
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply