Error in build files

Questions about XML that are not covered by the other forums should go here.
ehill
Posts: 27
Joined: Mon May 24, 2010 5:01 pm

Error in build files

Post by ehill »

This is going to be very vague, but I have no idea what happened. I didn't edit either one of these and now there's an issue with them when there wasn't before.

I'm getting to following errors:
C:\Program Files\Oxygen XML Author 11\frameworks\dita\DITA-OT\build.xml:59: The following error occurred while executing this line:
C:\Program Files\Oxygen XML Author 11\frameworks\dita\DITA-OT\build_preprocess.xml:116: java.lang.NullPointerException

The following is the text from these.
build.xml

<project name="DOST" default="init" basedir=".">
<import file="build_init.xml"></import>
<import file="build_preprocess.xml"></import>
<import file="build_general.xml"></import>
<import file="build_dita2xhtml.xml"></import>
<import file="build_dita2htmlhelp.xml"></import>
<import file="build_dita2javahelp.xml"></import>
<import file="build_dita2eclipsehelp.xml"></import>
<import file="build_dita2eclipsecontent.xml"></import>
<import file="build_dita2pdf.xml"></import>
<import file="build_dita2wordrtf.xml"></import>
<import file="build_dita2docbook.xml"></import>
<import file="build_dita2troff.xml"></import>

<path id="dost.class.path">

<pathelement location="${dita.dir}${file.separator}demo/fo/fo.jar"/>
<pathelement location="${dita.dir}${file.separator}lib${file.separator}dost.jar"></pathelement>
</path>

<target name="init">
<dita-ot-fail id="DOTA001F">
<condition>
<and>
<not>
<equals arg1="${transtype}" arg2="xhtml" casesensitive="false"></equals>
</not>
<not>
<equals arg1="${transtype}" arg2="eclipsehelp" casesensitive="false"></equals>
</not>
<not>
<equals arg1="${transtype}" arg2="javahelp" casesensitive="false"></equals>
</not>
<not>
<equals arg1="${transtype}" arg2="htmlhelp" casesensitive="false"></equals>
</not>
<not>
<equals arg1="${transtype}" arg2="pdf" casesensitive="false"></equals>
</not>
<not>
<equals arg1="${transtype}" arg2="docbook" casesensitive="false"></equals>
</not>
<not>
<equals arg1="${transtype}" arg2="eclipsecontent" casesensitive="false"></equals>
</not>
<not>
<equals arg1="${transtype}" arg2="troff" casesensitive="false"></equals>
</not>
<not>
<equals arg1="${transtype}" arg2="wordrtf" casesensitive="false"></equals>
</not>
<not><equals arg1="${transtype}" arg2="legacypdf" casesensitive="false"/></not><not><equals arg1="${transtype}" arg2="pdf2" casesensitive="false"/></not>
</and>
</condition>
</dita-ot-fail>
<condition property="transtarget" value="pdf2" else="${transtype}">
<equals arg1="${transtype}" arg2="pdf" casesensitive="false"></equals>
</condition>
<antcall target="dita2${transtarget}"></antcall>
</target>

<target name="all">
<echo>The "ant all" demonstration build has moved.
Please try the following command instead:
ant all -f build_demo.xml</echo>
</target>

<target name="dita-preprocess" depends="start-process, init-logger, check-arg, output-deprecated-msg, output-css-warn-message, preprocess"></target>





<target name="dita2legacypdf" depends="build-init, preprocess, map2legacypdf, topic2legacypdf">

</target>


<target name="topic2legacypdf" if="noMap">

<antcall target="dita.topic.fo">

<param name="input" value="${dita.temp.dir}${file.separator}${user.input.file}">
</param>

<param name="output" value="${dita.map.output.dir}${file.separator}${dita.topic.filename.root}.fo">
</param>

</antcall>

<antcall target="dita.fo2pdf">

<param name="input" value="${dita.map.output.dir}${file.separator}${dita.topic.filename.root}.fo">
</param>

<param name="output" value="${dita.map.output.dir}${file.separator}${dita.topic.filename.root}.pdf">
</param>

</antcall>

</target>


<target name="map2legacypdf" unless="noMap">

<antcall target="dita.map.fo">

<param name="input" value="${dita.temp.dir}${file.separator}${user.input.file}">
</param>

<param name="output" value="${dita.map.output.dir}${file.separator}${dita.map.filename.root}.fo">
</param>

</antcall>

<antcall target="dita.fo2pdf">

<param name="input" value="${dita.map.output.dir}${file.separator}${dita.map.filename.root}.fo">
</param>

<param name="output" value="${dita.map.output.dir}${file.separator}${dita.map.filename.root}.pdf">
</param>

</antcall>

</target>



<target name="dita.map.fo" description="Build XSL-FO output from ditamap">

<condition property="args.xsl" value="${dita.script.dir}${file.separator}dita2fo-shell.xsl">

<not>

<isset property="args.xsl">
</isset>

</not>

</condition>

<dirname file="${dita.temp.dir}${file.separator}${user.input.file}" property="dita.merged.dir">
</dirname>

<xslt processor="trax" in="${input}" out="${dita.merged.dir}${file.separator}${dita.map.filename.root}_MERGED.xml" style="${dita.script.dir}${file.separator}topicmerge.xsl">


</xslt>

<xslt processor="trax" in="${dita.merged.dir}${file.separator}${dita.map.filename.root}_MERGED.xml" out="${output}" style="${args.xsl}">


<param name="output-related-links" expression="${args.fo.output.rel.links}" if="args.fo.output.rel.links">
</param>

<param name="DITAEXT" expression="${dita.ext}" if="dita.ext">
</param>

<param name="DRAFT" expression="${args.draft}" if="args.draft">
</param>

<param name="ARTLBL" expression="${args.artlbl}" if="args.artlbl">
</param>

<param name="dflt-ext" expression="${fo.img.ext}" if="fo.img.ext">
</param>

</xslt>

</target>



<target name="dita.fo2pdf" if="hasFOP" description="Build PDF from FO using FOP">

<property name="fop.home" value="${dita.dir}/demo/legacypdf">
</property>

<taskdef name="fop" classname="org.apache.fop.tools.anttasks.Fop">

<classpath>
<pathelement path="${java.class.path}"/>
<!--<fileset dir="${fop.home}/lib">

<include name="*.jar">
</include>

</fileset>-->

<fileset dir="${dita.dir}/lib">

<include name="*.jar">
</include>

</fileset>

</classpath>

</taskdef>

<antcall target="dita.fo2pdf.userconfig">
</antcall>

<antcall target="dita.fo2pdf.nouserconfig">
</antcall>

</target>


<target name="dita.fo2pdf.userconfig" if="args.fo.userconfig">

<fop format="application/pdf" basedir="${input}" fofile="${input}" outfile="${output}" messagelevel="info" userconfig="${args.fo.userconfig}">

</fop>

</target>


<target name="dita.fo2pdf.nouserconfig" unless="args.fo.userconfig">

<fop format="application/pdf" basedir="${input}" fofile="${input}" outfile="${output}" messagelevel="info">

</fop>

</target>



<target name="dita.topic.fo" description="Build XSL-FO output from dita topic">

<condition property="args.xsl" value="${dita.script.dir}${file.separator}dita2fo-shell.xsl">

<not>

<isset property="args.xsl">
</isset>

</not>

</condition>

<xslt processor="trax" in="${input}" out="${output}" style="${args.xsl}">


<param name="output-related-links" expression="${args.fo.output.rel.links}" if="args.fo.output.rel.links">
</param>

<param name="DITAEXT" expression="${dita.ext}" if="dita.ext">
</param>

<param name="DRAFT" expression="${args.draft}" if="args.draft">
</param>

<param name="ARTLBL" expression="${args.artlbl}" if="args.artlbl">
</param>

<param name="dflt-ext" expression="${fo.img.ext}" if="fo.img.ext">
</param>

</xslt>

</target>





<available file="${dita.dir}/plugins/fo/build.xml" property="pdf2.dir" value="plugins">
</available>

<condition property="pdf2.dir" value="demo">

<not>

<isset property="pdf2.dir">
</isset>

</not>

</condition>


<target name="dita2pdf2" depends="pdfswitch-warning, dita-preprocess, map2pdf2, topic2pdf2">
</target>


<condition property="pdftranstype">

<equals arg1="${transtype}" arg2="pdf" casesensitive="false">
</equals>

</condition>


<target name="pdfswitch-warning" if="pdftranstype">

<echo>/------------------------------------------\
</echo>

<echo>| PLEASE NOTE: YOU ARE USING THE FO PLUGIN |
</echo>

<echo>| If you want the old pdf transtype, use |
</echo>

<echo>| the "legacypdf" transtype instead. |
</echo>

<echo>\------------------------------------------/
</echo>

</target>


<target name="topic2pdf2" if="noMap" depends="dita-preprocess">

<ant dir="${dita.dir}/${pdf2.dir}/fo" target="preview.topic.pdf">

<property name="caller.dir" value="${basedir}">
</property>

</ant>

</target>


<target name="map2pdf2" unless="noMap" depends="dita-preprocess">

<dirname property="dita.temp.dir.fullpath" file="${dita.temp.dir}${file.separator}dummy.file">
</dirname>

<pipeline message="topicmerge" module="TopicMerge" inputmap="${dita.temp.dir.fullpath}${file.separator}${user.input.file}" tempdir="${dita.temp.dir.fullpath}" extparam="output=${dita.temp.dir.fullpath}${file.separator}${dita.map.filename.root}_MERGED.xml;style=${dita.dir}/${pdf2.dir}/fo/xsl/common/topicmerge.xsl">

</pipeline>


<ant dir="${dita.dir}/${pdf2.dir}/fo" target="publish.map.pdf">

<property name="caller.dir" value="${basedir}">
</property>

</ant>

</target>


</project>
--------------------------------------------------------------
build_preprocess.xml

<project name="ditaot-preprocess" basedir=".">


<condition property="dita.preprocess.reloadstylesheet" value="false">
<not><isset property="dita.preprocess.reloadstylesheet"></isset></not>
</condition>

<target name="preprocess" depends="start-preprocess,clean-temp,gen-list,debug-filter,copy-files,conrefpush,conref,move-meta-entries,keyref,coderef,mapref,mappull,chunk,maplink,move-links,topicpull" description="Preprocessing ended"></target>


<target name="start-preprocess" description="Preprocessing started"></target>


<target name="clean-temp" unless="clean_temp" description="Clean temp directory">
<delete includeemptydirs="true">
<fileset dir="${dita.temp.dir}" includes="**/*" excludes="property.temp"></fileset>
</delete>
</target>


<target name="gen-list" depends="gen-list-without-flagging,gen-list-with-flagging" unless="preprocess.gen-list.skip" description="Generate file list">
</target>

<target name="gen-list-without-flagging" depends="gen-list-flag-check" unless="preprocess.gen-list-without-flagging.skip">
<pipeline message="Generate list." module="GenMapAndTopicList" basedir="${basedir}" inputmap="${args.input}" tempdir="${dita.temp.dir}" extparam="ditadir=${dita.dir};validate=${validate};generatecopyouter=${generate.copy.outer};outercontrol=${outer.control};onlytopicinmap=${onlytopic.in.map};outputdir=${output.dir}"></pipeline>
</target>

<target name="gen-list-with-flagging" depends="gen-list-flag-check" unless="preprocess.gen-list-with-flagging.skip">
<pipeline message="Generate list." module="GenMapAndTopicList" basedir="${basedir}" inputmap="${args.input}" tempdir="${dita.temp.dir}" extparam="ditadir=${dita.dir};ditaval=${dita.input.valfile};validate=${validate};generatecopyouter=${generate.copy.outer};outercontrol=${outer.control};onlytopicinmap=${onlytopic.in.map};outputdir=${output.dir}"></pipeline>
</target>

<target name="gen-list-flag-check">

<condition property="preprocess.gen-list-without-flagging.skip">
<or>
<isset property="preprocess.gen-list.skip"></isset>
<isset property="dita.input.valfile"></isset>
</or>
</condition>
<condition property="preprocess.gen-list-with-flagging.skip">
<or>
<isset property="preprocess.gen-list.skip"></isset>
<not><isset property="dita.input.valfile"></isset></not>
</or>
</condition>
</target>


<target name="debug-filter" depends="gen-list,debug,debug-and-filter" unless="preprocess.debug-filter.skip" description="Debug and filter input files">

<xmlpropertyreader file="${dita.temp.dir}${file.separator}dita.xml.properties"></xmlpropertyreader>
<dirname property="dita.map.output.dir" file="${output.dir}${file.separator}${user.input.file}"></dirname>
<condition property="noConref">
<equals arg1="${conreflist}" arg2=""></equals>
</condition>
<condition property="noMap">
<equals arg1="${fullditamaplist}" arg2=""></equals>
</condition>
<condition property="noTopic">
<equals arg1="${fullditatopiclist}" arg2=""></equals>
</condition>
<condition property="noImagelist">
<equals arg1="${imagelist}" arg2=""></equals>
</condition>
<condition property="noHtmllist">
<equals arg1="${htmllist}" arg2=""></equals>
</condition>
<condition property="noSublist">
<equals arg1="${subtargetslist}" arg2=""></equals>
</condition>
<condition property="noConrefPush">
<equals arg1="${conrefpushlist}" arg2=""></equals>
</condition>
<condition property="noKeyref">
<equals arg1="${keyreflist}" arg2=""></equals>
</condition>
</target>

<target name="debug" depends="debug-filter-flag-check" unless="preprocess.debug.skip" description="Debug input files">
<pipeline message="Debug and filtering." module="DebugAndFilter" basedir="${basedir}" tempdir="${dita.temp.dir}" extparam="ditaext=${dita.extname};ditadir=${dita.dir};validate=${validate}"></pipeline>
</target>

<target name="debug-and-filter" depends="debug-filter-flag-check" unless="preprocess.debug-and-filter.skip" description="Debug and filter input files">
<pipeline message="Debug and filtering." module="DebugAndFilter" basedir="${basedir}" tempdir="${dita.temp.dir}" extparam="ditaval=${dita.input.valfile};ditaext=${dita.extname};ditadir=${dita.dir};validate=${validate}"></pipeline>
</target>

<target name="debug-filter-flag-check">

<condition property="preprocess.debug.skip">
<or>
<isset property="preprocess.debug-filter.skip"></isset>
<isset property="dita.input.valfile"></isset>
</or>
</condition>
<condition property="preprocess.debug-and-filter.skip">
<or>
<isset property="preprocess.debug-filter.skip"></isset>
<not><isset property="dita.input.valfile"></isset></not>
</or>
</condition>
</target>


<target name="conrefpush" depends="debug-filter,conrefpush-check" unless="preprocess.conrefpush.skip" description="Resolve conref push">
<pipeline message="Resolve conref push." module="ConrefPush" basedir="${basedir}" tempdir="${dita.temp.dir}"></pipeline>
</target>

<target name="conrefpush-check">
<condition property="preprocess.conrefpush.skip">
<isset property="noConrefPush"></isset>
</condition>
</target>


<target name="move-meta-entries" depends="debug-filter,move-meta-entries-check" unless="preprocess.move-meta-entries.skip" description="Move metadata entries">
<pipeline message="Move metadata entries." module="MoveMeta" basedir="${basedir}" inputmap="${user.input.file}" tempdir="${dita.temp.dir}"></pipeline>
</target>

<target name="move-meta-entries-check">
<condition property="preprocess.move-meta-entries.skip">
<isset property="noMap"></isset>
</condition>
</target>


<target name="conref" depends="debug-filter,conrefpush,conref-check" unless="preprocess.conref.skip" description="Resolve conref in input files">
<condition property="dita.preprocess.reloadstylesheet.conref" value="${dita.preprocess.reloadstylesheet}">
<not><isset property="dita.preprocess.reloadstylesheet.conref"></isset></not>
</condition>
<xslt processor="trax" basedir="${dita.temp.dir}" destdir="${dita.temp.dir}" includesfile="${dita.temp.dir}${file.separator}${conreffile}" classpathref="dost.class.path" reloadstylesheet="${dita.preprocess.reloadstylesheet.conref}" style="${dita.script.dir}${file.separator}preprocess${file.separator}conref.xsl">
<mapper type="glob" from="*" to="*.cnrf"></mapper>
<param name="DITAEXT" expression="${dita.ext}"></param>

</xslt>
<move todir="${dita.temp.dir}">
<fileset dir="${dita.temp.dir}" includes="**/*.cnrf"></fileset>
<mapper type="glob" from="*.cnrf" to="*"></mapper>
</move>
</target>

<target name="conref-check">
<condition property="preprocess.conref.skip">
<isset property="noConref"></isset>
</condition>
</target>


<target name="coderef" depends="debug-filter,keyref,coderef-check" unless="preprocess.coderef.skip" description="Resolve coderef in input files">

<pipeline message="Resolve coderef." module="Coderef" basedir="${basedir}" tempdir="${dita.temp.dir}"></pipeline>

</target>

<target name="coderef-check">
<condition property="preprocess.coderef.skip">
<isset property="noCoderef"></isset>
</condition>
</target>


<target name="mapref" depends="coderef,mapref-check" unless="preprocess.mapref.skip" description="Resolve mapref in ditamap">
<condition property="dita.preprocess.reloadstylesheet.mapref" value="${dita.preprocess.reloadstylesheet}">
<not><isset property="dita.preprocess.reloadstylesheet.mapref"></isset></not>
</condition>
<dirname property="mapref.workdir" file="${dita.temp.dir}${file.separator}${user.input.file}"></dirname>
<xslt processor="trax" basedir="${dita.temp.dir}" destdir="${dita.temp.dir}" includesfile="${dita.temp.dir}${file.separator}${fullditamapfile}" extension=".ditamap.ref" classpathref="dost.class.path" reloadstylesheet="${dita.preprocess.reloadstylesheet.mapref}" style="${dita.script.dir}${file.separator}preprocess${file.separator}mapref.xsl">
<param name="DITAEXT" expression="${dita.ext}" if="dita.ext"></param>
<param name="TRANSTYPE" expression="${transtype}"></param>

</xslt>
<move overwrite="true" todir="${dita.temp.dir}">
<fileset dir="${dita.temp.dir}" includes="**/*.ditamap.ref"></fileset>
<mapper type="glob" from="*.ditamap.ref" to="*.ditamap"></mapper>
</move>
</target>

<target name="mapref-check">
<condition property="preprocess.mapref.skip">
<isset property="noMap"></isset>
</condition>
</target>


<target name="keyref" depends="move-meta-entries,keyref-check" unless="preprocess.keyref.skip" description="Resolve keyref">
<pipeline message="Resolve keyref." module="Keyref" basedir="${basedir}" tempdir="${dita.temp.dir}"></pipeline>
</target>

<target name="keyref-check">
<condition property="preprocess.keyref.skip">
<isset property="noKeyref"></isset>
</condition>
</target>


<target name="mappull" depends="mapref,mappull-check" unless="preprocess.mappull.skip" description="Pull the navtitle and topicmeta from topics to ditamap">
<dirname property="mappull.workdir" file="${dita.temp.dir}${file.separator}${user.input.file}"></dirname>
<condition property="dita.preprocess.reloadstylesheet.mappull" value="${dita.preprocess.reloadstylesheet}">
<not><isset property="dita.preprocess.reloadstylesheet.mappull"></isset></not>
</condition>
<xslt processor="trax" basedir="${dita.temp.dir}" destdir="${dita.temp.dir}" includesfile="${dita.temp.dir}${file.separator}${fullditamapfile}" extension=".ditamap.pull" classpathref="dost.class.path" reloadstylesheet="${dita.preprocess.reloadstylesheet.mappull}" style="${dita.script.dir}${file.separator}preprocess${file.separator}mappull.xsl">
<param name="DITAEXT" expression="${dita.ext}" if="dita.ext"></param>
<param name="TRANSTYPE" expression="${transtype}"></param>

</xslt>
<move overwrite="true" todir="${dita.temp.dir}">
<fileset dir="${dita.temp.dir}" includes="**/*.ditamap.pull"></fileset>
<mapper type="glob" from="*.ditamap.pull" to="*.ditamap"></mapper>
</move>
</target>

<target name="mappull-check">
<condition property="preprocess.mappull.skip">
<isset property="noMap"></isset>
</condition>
</target>


<target name="chunk" depends="mappull,chunk-check" unless="preprocess.chunk.skip" description="Process chunks">
<pipeline message="Process chunks." module="Chunk" basedir="${basedir}" inputmap="${user.input.file}" tempdir="${dita.temp.dir}" extparam="ditaext=${dita.ext};transtype=${transtype}"></pipeline>
<property file="${dita.temp.dir}${file.separator}dita.list"></property>
</target>

<target name="chunk-check">
<condition property="preprocess.chunk.skip">
<isset property="noMap"></isset>
</condition>
</target>


<target name="maplink" depends="chunk,maplink-check" unless="preprocess.maplink.skip" description="Find and generate related link information">
<dirname property="maplink.workdir" file="${dita.temp.dir}/${user.input.file}"></dirname>
<condition property="dita.preprocess.reloadstylesheet.maplink" value="${dita.preprocess.reloadstylesheet}">
<not><isset property="dita.preprocess.reloadstylesheet.maplink"></isset></not>
</condition>
<xslt processor="trax" in="${dita.temp.dir}${file.separator}${user.input.file}" out="${maplink.workdir}${file.separator}maplinks.unordered" classpathref="dost.class.path" reloadstylesheet="${dita.preprocess.reloadstylesheet.maplink}" style="${dita.script.dir}${file.separator}preprocess${file.separator}maplink.xsl">
<param name="DITAEXT" expression="${dita.ext}" if="dita.ext"></param>
<param name="INPUTMAP" expression="${user.input.file}"></param>

</xslt>
</target>

<target name="maplink-check">
<condition property="preprocess.maplink.skip">
<isset property="noMap"></isset>
</condition>
</target>


<target name="move-links" depends="maplink,move-links-check" unless="preprocess.move-links.skip" description="Move the related link information to topics">
<pipeline message="Move links." module="MoveLinks" extparam="maplinks=${maplink.workdir}${file.separator}maplinks.unordered" inputmap="${user.input.file}" tempdir="${dita.temp.dir}"></pipeline>
</target>

<target name="move-links-check">
<condition property="preprocess.move-links.skip">
<isset property="noMap"></isset>
</condition>
</target>


<target name="topicpull" depends="debug-filter,topicpull-check" unless="preprocess.topicpull.skip" description="Pull metadata for link and xref element">
<condition property="dita.preprocess.reloadstylesheet.topicpull" value="${dita.preprocess.reloadstylesheet}">
<not><isset property="dita.preprocess.reloadstylesheet.topicpull"></isset></not>
</condition>
<xslt processor="trax" basedir="${dita.temp.dir}" destdir="${dita.temp.dir}" includesfile="${dita.temp.dir}${file.separator}${fullditatopicfile}" classpathref="dost.class.path" reloadstylesheet="${dita.preprocess.reloadstylesheet.topicpull}" style="${dita.script.dir}${file.separator}preprocess${file.separator}topicpull.xsl">
<includesfile name="${dita.temp.dir}${file.separator}${chunkedtopicfile}" if="chunkedtopicfile"></includesfile>
<param name="DITAEXT" expression="${dita.ext}" if="dita.ext"></param>
<param name="ONLYTOPICINMAP" expression="${onlytopic.in.map}" if="onlytopic.in.map"></param>

<mapper type="glob" from="*" to="*.pull"></mapper>
</xslt>
<move todir="${dita.temp.dir}">
<fileset dir="${dita.temp.dir}" includes="**/*.pull"></fileset>
<mapper type="glob" from="*.pull" to="*"></mapper>
</move>
</target>

<target name="topicpull-check">
<condition property="preprocess.topicpull.skip">
<isset property="noTopic"></isset>
</condition>
</target>


<target name="copy-files" depends="debug-filter,copy-image,copy-html,copy-flag,copy-subsidiary,copy-generated-files" unless="preprocess.copy-files.skip"></target>

<target name="copy-image" depends="copy-image-check" unless="preprocess.copy-image.skip" description="Copy image files">
<copy todir="${output.dir}">
<fileset dir="${user.input.dir}" includesfile="${dita.temp.dir}${file.separator}${imagefile}"></fileset>
</copy>
</target>

<target name="copy-image-check">
<condition property="preprocess.copy-image.skip">
<or>
<isset property="preprocess.copy-files.skip"></isset>
<isset property="noImagelist"></isset>
</or>
</condition>
</target>

<target name="copy-html" depends="copy-html-check" unless="preprocess.copy-html.skip" description="Copy html files">
<copy todir="${output.dir}">
<fileset dir="${user.input.dir}" includesfile="${dita.temp.dir}${file.separator}${htmlfile}"></fileset>
</copy>
</target>

<target name="copy-html-check">
<condition property="preprocess.copy-html.skip">
<or>
<isset property="preprocess.copy-files.skip"></isset>
<isset property="noHtmllist"></isset>
</or>
</condition>
</target>

<target name="copy-flag" depends="copy-flag-check" unless="preprocess.copy-flag.skip" description="Copy flag files">
<copy todir="${dita.map.output.dir}">
<fileset dir="${dita.resource.dir}" includes="delta.gif,deltaend.gif"></fileset>
</copy>
<dita-ot-copy todir="${output.dir}" includes="${flagimagelist}" relativepaths="${relflagimagelist}"></dita-ot-copy>
</target>

<target name="copy-flag-check">
<condition property="preprocess.copy-flag.skip">
<or>
<isset property="preprocess.copy-files.skip"></isset>
<not><isset property="dita.input.valfile"></isset></not>
</or>
</condition>
</target>

<target name="copy-subsidiary" depends="copy-subsidiary-check" unless="preprocess.copy-subsidiary.skip" description="Copy subsidiary files">
<copy todir="${dita.temp.dir}">
<fileset dir="${user.input.dir}" includesfile="${dita.temp.dir}${file.separator}${subtargetsfile}"></fileset>
</copy>
</target>


<target name="copy-subsidiary-check">
<condition property="preprocess.copy-subsidiary.skip">
<or>
<isset property="preprocess.copy-files.skip"></isset>
<isset property="noSublist"></isset>
</or>
</condition>
</target>

<target name="copy-generated-files" unless="preprocess.copy-generated-files.skip" description="Copy generated files">
<copy todir="${args.logdir}">
<fileset dir="${dita.temp.dir}" includes="dita.list,property.temp,dita.xml.properties"></fileset>
</copy>
</target>



<target name="copy-revflag" if="dita.input.valfile">
<copy todir="${output.dir}">
<fileset dir="${dita.resource.dir}" includes="*.gif"></fileset>
</copy>
</target>

<target name="copy-css" unless="user.csspath.url" description="Copy CSS files">
<condition property="user.copycss.yes">
<and>
<equals arg1="${args.copycss}" arg2="yes"></equals>
<isset property="args.css.present"></isset>
</and>
</condition>
<property name="user.csspath.real" value="${output.dir}${file.separator}${user.csspath}"></property>
<mkdir dir="${user.csspath.real}"></mkdir>

<copy todir="${user.csspath.real}">
<fileset dir="${dita.resource.dir}" includes="*.css"></fileset>
</copy>

<antcall target="copy-css-user"></antcall>
</target>

<target name="copy-css-user" if="user.copycss.yes">
<copy file="${args.css.real}" todir="${user.csspath.real}"></copy>
</target>


<target name="move-index-entries" depends="move-meta-entries"></target>

</project>
Radu
Posts: 9057
Joined: Fri Jul 09, 2004 5:18 pm

Re: Error in build files

Post by Radu »

Hi,

If you edit the Oxygen transformation scenario, in the Advanced tab there is an Aditional arguments text field. Just enter -verbose in it and transform again. This should give you more details about the NullPointerException.

If you still cannot fix the problem please send us more details to our support email address support@oxygenxml.com:

Do you use a custom version of the DITA OT or the built-in one?
Did you customize the build files or stylesheets in any way?
What version of Oxygen are you currently using?
Please copy the entire content of the Oxygen console after the transformation, zip it and send it to us.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
ehill
Posts: 27
Joined: Mon May 24, 2010 5:01 pm

Re: Error in build files

Post by ehill »

Thank you.

I don't understand what I got in the details so, I posted it below. I'm using Oxygen 11.2 and I inherited the build files and DITA OT from a coworker. I'm assuming they were edited. However, they worked before and now they don't.
---------------------------------------

BUILD FAILED
C:\Program Files\Oxygen XML Author 11\frameworks\dita\DITA-OT\build.xml:59: The following error occurred while executing this line:
C:\Program Files\Oxygen XML Author 11\frameworks\dita\DITA-OT\build_preprocess.xml:116: java.lang.NullPointerException
at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:541)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:418)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: C:\Program Files\Oxygen XML Author 11\frameworks\dita\DITA-OT\build_preprocess.xml:116: java.lang.NullPointerException
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
... 17 more
Caused by: java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Unknown Source)
at java.util.Properties.load0(Unknown Source)
at java.util.Properties.load(Unknown Source)
at org.dita.dost.util.ListUtils.getDitaList(ListUtils.java:43)
at org.dita.dost.module.MoveMetaModule.execute(MoveMetaModule.java:73)
at org.dita.dost.pipeline.PipelineFacade.execute(PipelineFacade.java:52)
at org.dita.dost.invoker.AntInvoker.execute(AntInvoker.java:151)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
... 24 more
--- Nested Exception ---
C:\Program Files\Oxygen XML Author 11\frameworks\dita\DITA-OT\build_preprocess.xml:116: java.lang.NullPointerException
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Unknown Source)
at java.util.Properties.load0(Unknown Source)
at java.util.Properties.load(Unknown Source)
at org.dita.dost.util.ListUtils.getDitaList(ListUtils.java:43)
at org.dita.dost.module.MoveMetaModule.execute(MoveMetaModule.java:73)
at org.dita.dost.pipeline.PipelineFacade.execute(PipelineFacade.java:52)
at org.dita.dost.invoker.AntInvoker.execute(AntInvoker.java:151)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
... 24 more
--- Nested Exception ---
java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Unknown Source)
at java.util.Properties.load0(Unknown Source)
at java.util.Properties.load(Unknown Source)
at org.dita.dost.util.ListUtils.getDitaList(ListUtils.java:43)
at org.dita.dost.module.MoveMetaModule.execute(MoveMetaModule.java:73)
at org.dita.dost.pipeline.PipelineFacade.execute(PipelineFacade.java:52)
at org.dita.dost.invoker.AntInvoker.execute(AntInvoker.java:151)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Post Reply