Problem running ditaWebhelp.bat
Posted: Tue Mar 13, 2018 9:35 pm
I am trying to run a transformation from the command line following the instructions in https://www.oxygenxml.com/doc/versions/ ... lugin.html but am having a problem.
I went to my Oxygen XML Author 19\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp.classic folder, copied and edited ditaWebhelp.bat to be as follows:
I opened a command window and executed the above, but got the following:
What is wrong? Line 28 of build_dita.xml is : .
Thanks in advance.
I went to my Oxygen XML Author 19\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp.classic folder, copied and edited ditaWebhelp.bat to be as follows:
Code: Select all
set WEBHELP_JAVA="C:\jdk1.8\bin\java.exe"
set DITA_OT_INSTALL_DIR=%~dp0\..\..
set TRANSTYPE=webhelp
set DITA_MAP_BASE_DIR="C:\DitaContent\DITA-Project\my-helpsystem"
set DITAMAP_FILE=myplatform.ditamap
set DITAVAL_FILE=myapp123.ditaval
set DITAVAL_DIR="C:\DitaContent\DITA-Project\my-helpsystem"
%WEBHELP_JAVA%^
-Xmx512m^
-classpath^
"%DITA_OT_INSTALL_DIR%\tools\ant\lib\ant-launcher.jar;%DITA_OT_INSTALL_DIR%\lib\ant-launcher.jar"^
"-Dant.home=%DITA_OT_INSTALL_DIR%\tools\ant" org.apache.tools.ant.launch.Launcher^
-lib "%DITA_OT_INSTALL_DIR%\plugins\com.oxygenxml.webhelp.classic\lib\xercesPatches.jar"^
-lib "%DITA_OT_INSTALL_DIR%"^
-lib "%DITA_OT_INSTALL_DIR%\lib"^
-lib "%DITA_OT_INSTALL_DIR%\lib\saxon"^
-lib "%DITA_OT_INSTALL_DIR%\plugins\com.oxygenxml.highlight\lib\xslthl-2.1.1.jar"^
-f "%DITA_OT_INSTALL_DIR%\build.xml"^
"-Dtranstype=%TRANSTYPE%"^
"-Dbasedir=%DITA_MAP_BASE_DIR%"^
"-Doutput.dir=C:\Users\myname\DITA-output\testCommandLineOutput"^
"-Ddita.temp.dir=%DITA_MAP_BASE_DIR%\temp\%TRANSTYPE%"^
"-Dargs.hide.parent.link=no"^
"-Dargs.filter=%DITAVAL_DIR%\%DITAVAL_FILE%"^
"-Ddita.input.valfile=%DITAVAL_DIR%\%DITAVAL_FILE%"^
"-Ddita.dir=%DITA_OT_INSTALL_DIR%"^
"-Dargs.xhtml.classattr=yes"^
"-Dargs.input=%DITA_MAP_BASE_DIR%\%DITAMAP_FILE%"^
"-Dwebhelp.skin.css=%DITA_MAP_BASE_DIR%\TESTmyapp.css"^
"-DbaseJVMArgLine=-Xmx384m"
Code: Select all
"C:\jdk1.8\bin\java.exe" -Xmx512m
-classpath "C:\Program Files\Oxygen XML Author 19\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp.classic\\..\..\tools\ant\lib\ant-launcher.jar;C:\Program Files\Oxygen XML Author 19\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp.classic\\..\..\lib\ant-launcher.jar"
"-Dant.home=C:\Program Files\Oxygen XML Author 19\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp.classic\\..\..\tools\ant" org.apache.tools.ant.launch.Launcher
-lib "C:\Program Files\Oxygen XML Author 19\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp.classic\\..\..\plugins\com.oxygenxml.webhelp.classic\lib\xercesPatches.jar"
-lib "C:\Program Files\Oxygen XML Author 19\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp.classic\\..\.."
-lib "C:\Program Files\Oxygen XML Author 19\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp.classic\\..\..\lib"
-lib "C:\Program Files\Oxygen XML Author 19\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp.classic\\..\..\lib\saxon"
-lib "C:\Program Files\Oxygen XML Author 19\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp.classic\\..\..\plugins\com.oxygenxml.highlight\lib\xslthl-2.1.1.jar"
-f "C:\Program Files\Oxygen XML Author 19\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp.classic\\..\..\build.xml"
"-Dtranstype=webhelp"
"-Dbasedir="C:\DitaContent\DITA-Project\my-helpsystem""
"-Doutput.dir=C:\Users\myname\DITA-output\testCommandLineOutput"
"-Ddita.temp.dir="C:\DitaContent\DITA-Project\my-helpsystem"\temp\webhelp"
"-Dargs.hide.parent.link=no"
"-Dargs.filter="C:\DitaContent\DITA-Project\my-helpsystem"\myapp123.ditaval"
"-Ddita.input.valfile="C:\DitaContent\DITA-Project\my-helpsystem"\myapp123.ditaval"
"-Ddita.dir=C:\Program Files\Oxygen XML Author 19\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp.classic\\..\.."
"-Dargs.xhtml.classattr=yes"
"-Dargs.input="C:\DitaContent\DITA-Project\my-helpsystem"\myplatform.ditamap"
"-Dwebhelp.skin.css="C:\DitaContent\DITA-Project\my-helpsystem"\TESTmyapp.css"
"-DbaseJVMArgLine=-Xmx384m
"
Buildfile: C:\Program Files\Oxygen XML Author 19\frameworks\dita\DITA-OT2.x\build.xml
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
init:
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
webhelp-build-init:
BUILD FAILED
C:\Program Files\Oxygen XML Author 19\frameworks\dita\DITA-OT2.x\build.xml:45: The following error occurred while execut
ing this line:
C:\Program Files\Oxygen XML Author 19\frameworks\dita\DITA-OT2.x\plugins\com.oxygenxml.webhelp.classic\build_dita.xml:28
: Problem: failed to create task or type if
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Total time: 0 seconds
Code: Select all
<if>
Thanks in advance.