REM This file is part of the DITA Open Toolkit project hosted on REM Sourceforge.net. See the accompanying license.txt file for REM applicable licenses. REM (c) Copyright IBM Corp. 2006 All Rights Reserved. REM Get the absolute path of DITAOT's home directory set DITA_DIR=%~dp0 REM Set environment variables set ANT_OPTS=-Xmx512m %ANT_OPTS% set ANT_OPTS=%ANT_OPTS% -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl set ANT_HOME=%DITA_DIR%tools\ant set PATH=%DITA_DIR%tools\ant\bin;%PATH% set CLASSPATH=%DITA_DIR%lib;%DITA_DIR%lib\dost.jar;%DITA_DIR%lib\commons-codec-1.4.jar;%DITA_DIR%lib\dost.jar;%DITA_DIR%lib\resolver.jar;%DITA_DIR%lib\icu4j.jar;%CLASSPATH% set CLASSPATH=%DITA_DIR%lib\saxon\saxon9.jar;%DITA_DIR%lib\saxon\saxon9-dom.jar;%CLASSPATH% set CLASSPATH=%DITA_DIR%lib\saxon\saxon9-dom4j.jar;%DITA_DIR%lib\saxon\saxon9-jdom.jar;%CLASSPATH% set CLASSPATH=%DITA_DIR%lib\saxon\saxon9-s9api.jar;%DITA_DIR%lib\saxon\saxon9-sql.jar;%CLASSPATH% set CLASSPATH=%DITA_DIR%lib\saxon\saxon9-xom.jar;%DITA_DIR%lib\saxon\saxon9-xpath.jar;%DITA_DIR%lib\saxon\saxon9-xqj.jar;%CLASSPATH% set JAVA_HOME=%DITA_DIR%Java\jdk1.7.0_17 IF [%5]==[] ( ant -f build_demo.xml -Dprompt.output.directory=%2 -Dprompt.output.type=%4 -Dprompt.ditamap.filename=%1 -logfile %3 -Dprompt.output.confirm=Y ) ELSE ( IF "%4"=="pdf" ( ant -f build_demo.xml -Dprompt.output.directory=%2 -Dprompt.output.type=%4 -Dprompt.ditamap.filename=%1 -logfile %3 -Dprompt.output.confirm=Y -Dargs.xsl.pdf=%5 ) ELSE ( ant -f build_demo.xml -Dprompt.output.directory=%2 -Dprompt.output.type=%4 -Dprompt.ditamap.filename=%1 -logfile %3 -Dprompt.output.confirm=Y -Dargs.xsl=%5 ) )