[oXygen-user] Using my own Ant build file in a DITA scenario
Florent Georges
lists at fgeorges.org
Thu Mar 8 07:41:02 CST 2012
Hi,
I tried to use a custom Ant build file for one of my DITA scenarios.
Within that script, I import the Ant script from DITA OT in the oXygen
distribution, and I set a value for a specific property:
<project basedir="." name="...">
<import file="/.../frameworks/dita/DITA-OT/demo/fo/build.xml"/>
<property name="some.ot.prop" value="..."/>
</project>
The problem is that the build.xml in oXygen distro contains import
instructions with properties:
<import file="${dita.plugin.org.dita.pdf2.dir}/build_fop.xml"/>
<import file="${dita.plugin.org.dita.pdf2.dir}/build_axf.xml"/>
<import file="${dita.plugin.org.dita.pdf2.dir}/build_xep.xml"/>
and when I run the transform scenario, Ant complains that it cannot
find the file /.../fo/${dita.plugin.org.dita.pdf2.dir}/build_fop.xml
(see? the property has not been expanded). The error is:
BUILD FAILED
/.../my-build.xml:3: The following error occurred while executing this line:
/.../fo/build.xml:29: Cannot find /.../fo/${dita.plugin.org.dita.pdf2.dir}/build_fop.xml imported from /.../fo/build.xml
What did I miss? How can I make sure the same properties are loaded
in both cases? Is there any built-in mechanism in oXygen to overload
Ant properties without setting my own build file?
Regards,
--
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/
More information about the oXygen-user
mailing list