Re: #DITA-OT Manual build file failing #DITA-OT
Leigh W
Ant build files as described in DITA For Print (thank you, btw) don't work with 3.x versions of the OT as 3.x deprecated the use of the ant command in favor of the dita command. You'll probably find it easiest to use a properties file instead. Your batch file would look something like this: set DITA_DIR=C:\dita-ot-3.5.4\ set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_172\ set TEMP_DIR=Projects\TestShowTrackChanges\_temp set OUTPUT_DIR=Projects\TestShowTrackChanges\_output if exist %TEMP_DIR%\nul rd /q /s %TEMP_DIR% Rem Delete the content of the output folder if exist %OUTPUT_DIR%\nul del /q /s %OUTPUT_DIR%\* call %DITA_DIR%bin\dita --input=Projects\TestShowTrackChanges\TestShowTrackChanges.ditamap --format=pdf --propertyfile=build3x.properties --logfile=build3x.log --verbose --debug and your properties file (in this examples, named "build3x.properties") would look something like this: output.dir = Projects\\TestShowTrackChanges\\_output clean.temp = no dita.temp.dir = Projects\\TestShowTrackChanges\\_temp args.rellinks = none show.changes.and.comments = yes show.changebars = yes With everything set for your environment, of course. You can add additional parameters to the properties file just like you can to the ant build file. Best, Leigh I am currently working my way through 'Dita for Print' 2nd edition and I am struggling with the exercise 'Create an ANT build file'. I have created the ANT file and a batch file to run it - I am confident these are both set up correctly. |
|